2

Using XCode 4, with the iPhone iOS 4.2

Hey everyone, I'm using a tabBar interface for my new app that I'm trying to finish. I have declared the UILabels and as soon as I connect them in the interface builder to the actual labels, the whole app will crash upon selection of its tab at runtime, in the simulator and on my iphone.

I'm hoping there's a really simple answer out there, but I really have no idea where to look (I am a novice).

Thanks in advance,

Julio Gorgé
  • 10,056
  • 2
  • 45
  • 60
TowBoat911
  • 101
  • 1
  • 7
  • Post some code. There's lots of ways in ObjC to "declare the UILabels" and most of them lead to crashes. – MusiGenesis Feb 24 '11 at 00:45
  • please post the error from your console logs. – Tyler Zale Feb 24 '11 at 00:46
  • I solved the problem, thanks for the replys guys. In my mainview.xib that has the tabbar in it, I had the NIB hooked up with the tabs, but I forgot to change the class from UIViewer to the class of the page. – TowBoat911 Feb 24 '11 at 23:35

1 Answers1

0

Usually this happens when you change the name of your variables but didn't update the hooks in IB. An easy fix to this that I usually do is to unhook everything in IB, and then hook them back on again.

Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156