iOS programming

I can learn iOS programming through reference books? which kind of mac computer will be better for working as the iOS programmer?