Picker not populating in iOS6 but populating in iOS 5.1 - iphone

Have an odd thing happening with an app I'm on.
Firstly, the code and particular action within the app is fine when running on the iOS 5.1 simulator. When I run the same app on iOS 6.0 simulator, the action doesn't work.
Building the code on 5.1 sim produces an error free build. Building on 6.0 produces yellow warnings only.
I kind of expected this after some things being deprecated after the SDK upgrade.
The yellow warnings I have are of a deprecation but only that a Group Table View Background Color is now not available in 6.0 so I don't think that's affecting it.
Before posting code that works in 5.1, I'll explain.
I can fill, enter and save some text in a plain old text box. I then use that saved text to populate a picker in another tab.
As I say, works great with no problems in 5.1, seems not to work in 6.0.
Has anyone experienced similar things populating their pickers from 5.1 to 6.0?
Is their anything common that you guys know about before I delve deeper?
Many thanks for reading,
Gaz.

please make sure the you have copied the yourDataBase.sqlite from iOS5 simulator to your application bundle in iOS6 simulator.

Related

Xcode Create a working app for iOS 5.1 with xcode 4.6

i can run my app on my 6.1 iOS but can't with 5.1
i have the iOS Deployment Target set to 5.1 on both Project and Target
when i run the simulation for 5.1 it works fine but when i try it on my iPhone it crash's
i committed out all my code thinking that was the problem but the same thing keeps happening
XIB and auto-layout is not enabled
The iPhone simulation works with no errors
I tried to create a new project and have only a label and i still get the same out come
can some one send a link to a single view project that works with 5.1, the program could be blank i just want to compare to mine to see what is different/ wrong.
Sounds like you might be trying to use an API that is specific to iOS6 (UICollectionView or something similar).
You need to plug the device in and run it and see what the console indicates is the problem.
You have Auto Layout turned on for ViewController.xib. There are two ways to work around this. Either disable Auto Layout on that xib:
1) Xcode 4.3 not presenting Autoresizing panel in Size Inspector
Or use one of many methods to enable auto layout while remaining backwards compatible:
2) Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5

I modified the iOS app, but when I build and run it with xcode 4, it doesn't change

I made an app (already approved in the app store) with xcode 4 and it runs.
Now I would like to modify it for an update. My app has 2 localize (English and Italian) and before I modified it, I removed the second localize. My app is a tab bar app with 3 buttons.
My problem is that I added a new button to the tab bar in the mainWindow (everything is correct also name and nib) but it doesn't appear when I run it on my iphone nor on the simulator (iphone or ipad 3.2, 4.0 or 4.2). It works only on the 4.3 simulator (my iphone is 4.3.3).
If I remove the mainWindow (both), then it works on the iphone and 3.2, 4.0, 4.3 simulator as before I modified it.
What can i do?
Thanks!
When in doubt, try a full clean and rebuild. I've found xCode likes to hold onto old files if they're (mistakenly) marked as unmodified, doing a full clean and rebuild usually fixes this problem
Like #Dan F says, clean and rebuild is a must. Also I've found that putting out releases won't work unless you increase the app version number. If it's currently at 1.0 try changing it to 1.1 (or however you want to version your app) and see if that fixes it.
Otherwise you'll want to play around with your build settings and make sure the versions you're building for are correct. Just a few thoughts...

iPhone simulator just shows blank grey screen?

I'm trying to learn iOS development, and have run into a problem that has stopped any and all progress. Whenever I build and run my code on the simulator, I just get a blank grey screen! I can't find any help on the subject, so I turn to you wonderful people here. I have no idea what's wrong. Even when I start a new blank project and build/run it, I get a blank grey screen. It seems like something is wrong in xcode that's preventing my MainWindow.xib file to be used.
Like I said, I'm just learning, so I don't have much experience as to how this all works.
Try this: with iOS Simulator active, select Window->Scale->50%. This worked for me after frustrating hours and hours of restarting the computer, reinstalling Xcode, and searching the Web. Turned out there was nothing wrong with iOS Simulator, just that the default Scale of 100% hid all the icons. OS X 10.9.3, Xcode 5.1.1, iOS Simulator 7.1.
Some of the sample project templates (e.g. 'view based application') don't show anything interesting - only a grey screen (bceause it's up to you to actually add something to the view). But if you create a new "Navigation based application" sample project, you'll see a blue nav bar and an empty table in your app.

What could cause my app to show a blank screen on startup after upgrading to iOS 4.2.1?

My app works fine on iOS 3.3, but after I upgraded my iPhone to iOS 4.2.1, I started to see some weird behaviour.
When I start my app on the upgraded iPhone, it goes blank. I have to tap the Home button to close the app.
The problem is, the app did not crash. It just showed me a blank screen. So I don't have any crash report to track this issue down.
Has anyone seen this before? Is it an iOS 4.2-specific issue? What steps can I take to determine the cause so that I can fix my code?
The behaviour of iOS did change between iOS3 and iOS4. As a first step, try walking through your code with the debugger. Also check your application:didFinishLaunchingWithOptions: method in your main App Delegate class.
A quick search also turned up some useful info about a similar issue: App shows white screen on startup after upgrading to iOS 4.2
The link also has info on how they managed to find out what was happening.

uitoolbar location changes according to different iPhone SDKs

I have a UIToolbar at the bottom of the view. when I run the application using iPhone Simulator 2.2.1, the toolbar is displayed in place. But when I run the application using iPhone Simulator 3.0 the toolbar is shifted up from its place. Is there any way I can fix this ? I would appreciate any help.
Thanks,
Sarah
Using toolbars in iPhone OS 2.x is hard to get it right. The documentation is fuzzy, or non-existing. The addition of proper toolbar handling in iPhone OS 3.0 is a clear sign of Apple admitting that toolbars in 2.x where just not ready for the public.
This is not the answer you expect, but the answer you need. Ask yourself; "Will a user who has not bothered to update to iPhone OS 3.0 bother to install my app?"
The answer is most probably no.
Then what you should do is make sure your application uses a UINavigationController, and have each UIViewController that needs a toolbar set it's toolbarItems property to an NSArray with the UIBarButtonItem objects you need.
On iPhone OS 3.0 this will result in a toolbar that is automatically populated, laid out, and managed for you with no fuzz.
What does it look like on the device?
I've had wonky issues with the 2.2.1 simulator since updating to the 3.0 SDK, and from what I've found on Google, I'm not the only one. If it looks fine on the device, then ignore the simulator issues, or debug with the 3.0 simulator instead.