I was always under the understanding that initWithCoder was to be used purely for archiving. However after doing a bit of digging have found that if there is no archive it loads the default class. for example in the case of a UIView it will call the drawRect function which facilitates any custom drawing that you want to do on the view.
(Little things like this can save a lot of time and effort)
Wednesday, 17 August 2011
Sunday, 14 August 2011
iOS Provisioning profiles
After a lengthy session trying to get my app to deploy to my iPhone, I finally have succeeded. Tip to all those out there. If there are any keys or certificates in the system section of keychain access you must delete them in order for your app to deploy. If you don't you will be met with nothing but frustrating weird errors.
Friday, 12 August 2011
Core Graphics
I has been one of those unproductive days today where nothing seems to go right. Cannot get Core Graphics to work its quite bizarre. Why is it the things that seem so easy are hard? It appears that no matter what I do I just can't get core graphics do draw, even after looking through sample code. Think my brain has had it. Well it is friday.
Sunday, 7 August 2011
iOS CLLocation and MapKit
Just Integrated core location and mapKit into my app literally took about 5 mins if that. I have to say it is on of the best features apple have put on the iPhone and iPad. I would recommend it to anyone thinking about iOS programming!
Subscribe to:
Posts (Atom)