Luckily this fellow ran into the same issue (and posted it). I wasn't using a button, but a "search bar"; and when I removed it everything built just fine. I don't think IB files like multiple "bars". Oh well, back to hard coding GUIs.
[error-message]
*** -[UIImage encodeWithCoder:]: unrecognized selector sent to instance 0x44d470
[/error-message]
I also learned that Xcode or IB doesn't like "lonely" outlets. Meaning, if you assign an instance to an outlet in IB, you better make sure the instance variable is in the corresponding class file. It will build and launch, but crash with some error like: __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__
Fun with WTFs.
4 comments:
I'm using a UISearchBar as well and am running into the same error when compiling, but still can fix after reading both your and the other post. I am using beta 5 and cannot find the "Show Pressed Feedback..." (or anything like it) attribute checkbox the other post mentioned in IB. Any other suggestions? Thanks.
Honestly, I don't have any "real" suggestions; other than adding the "conflicting" UI control dynamically (via hard coded fun). Sorry, but until the final release is deployed I think we will be at the mercy of Apple's iPhone Dev teams.
having the same sort of problem with UIPageControl. I can't find any mention of this anywhere so either it is just me or no one is trying to use this control in IB. The only example I can find for this component is in UIShowcase and Apple could not possible have produced a more worthless example.
Interface Builder can help with Outlet issues - open the XIB file and click on the info (i) button in the NIB document window (the one that shows the view components in a list).
If there are issues, they often show up here.
Hope that helps ....
Another iPhone n00b :)
Post a Comment