Where can i learn to legitamently hack iphone applications?

All hackers learn somewhere and i don't know where that somehwere is. For example, i wouldnt want to know where to jailbreak, i would want to know how to create my own jailbreak and write the files. Please assist me in this field! I've got the money if there are programs. Not only phones though but computers too!

If you just run a program then thats not really hacking.