I was developing my application on XCode 4.1, for iOs 4.3, but yesterday I’ve updated it to XCode 4.2 with iOs 5.0 SDK.
When I run my application in iphone 4.3 simulator, it works great.
I decided to test it on iphone 5.0 simulator, and following problems appeared:
- I’ve got a view controller f.e “MyViewController”, and a custom class which implements some custom component “MyCustomComponent” which is added to “MyViewController”. There is a button in MyCustomComponent, and when its touched it peformSelector from MyViewController, and it leads to crash with EXC_BAD something. Same code works on iPhone 4.3 simulator just perfectly. Any ideas?
- Custom navigation bar – doesn’t work at all. I’m trying to set custom background implementing UINavigationBar, and overriding drawRect, but it doesn’t shows in ios 5.
OK, so i guess I figrued it out. My console was off, when i reinstalled xcode, so didn’t see any error messages. Turned it on now, and got an error
Problem was that I was adding MyCustomComponent to MyViewController using
when I should be doing
it wasn’t an issue in ios 4.3, but seems its a big deal in ios 5.