White blank screen in iPhone simulator and Black blank screen when loaded into iPhone - iphone

When I run my app on the simulator, every time a white blank screen would be generated. but after I black iPhone button on the bottom to exit the app, the views will then be visible after you re-enter the app. then the app run as usual.
But the situation is different when I load it into my iPhone.
Only BLACK blank screen can be seen into the app. after I exit the app and re-enter it, still nothing can be seen, and the app would automatically exit, too.
I dunno why it would be like that as simulator just simulate the real iPhone.
Here is some information:
iOS version of my iPhone: iOS 5
XCode version: XCode 4.2
Hope someone can help me. Thanks a lot.

Make sure that your Base SDK is as high or higher than your current version. Change it in your target settings and your project settings. Also change your compiler to Apple LLVM and your debugger (under edit scheme) to LLDB.

Related

Iphone resolution on an Ipad

We have an app that has been rejected in the review process by the Apple app review people. The cause for the rejection is that the app is not scaling properly when run on an Ipad.
The app was never meant to be run on an Ipad, but there seems to be no point in arguing with them about that.
Apple sent us a couple of screenshots that show our app being run on an Ipad with the top portion of the view cut off. Notice how the app is run in some mode where it looks like an Iphone app and does not fill out the entire display area. When we bring up the app on an Ipad, it fills out the screen and does so without any edges cut off.
Can anyone please tell me how to run the app on an Ipad the way the Apple guys have - Iphone-sized? We believe we have a fix for the issue but we need to reproduce the error and then be able to verify that the fix solves the issue.
(the logotypes in the images are intentionally blurred)
I just went through this myself and here is how I resolved it:
Go into info.plist and see if any of the supported interface orientations are set for iPad. Despite selecting iPhone only, I had iPad supported orientations for four (portrait, portrait upside down, landscape left, landscape right). I deleted those.
I also deleted any reference to the launch screen in the info.plist. My app is pretty simple and there's no preloading of data so I don't really need a launch screen. If you do, you could go old school and make your first VC the launch screen.
I then made these changes in Target-->General-->App Icons and Launch Images
That was the only way I could get it in the sim to run the app at iPhone resolution while running an iPad (iPad2, iPad Air).
If Apple is going to force developers to ensure an app runs on an iPad even if it is made just for iPhone, they should eliminate the iPhone Only and Universal options and just have iPad Only as an option.
To run an iPhone app on an iPad, you just need to:
Acquire an iPad (you can also use the simulator)
Set the target device family in Xcode (it's under your target) to iPhone
Connect your iPad, perform any necessary certificate dances
Run the app on the iPad.
As long as the target device family is set to iPhone, the iPad will show your app in this mode.
Apple is likely running your app on a simulator, not on a real device. Notice the "2X" on the top right. In XCode - you should run the app on iPad Retina Simulator. On the bottom right you will see a button that you can toggle from 1X to 2X.
If you place the simulator in "2X" mode, you will see what Apple is seeing.
What OS are you running on your iPad? Things have changed in iOS 8 - and that's likely why you're not seeing what Apple is seeing. My guess is that your are running an app that was initially developed for iOS 7 or earlier - which means that you need to upgrade from scaled resolution to native resolutions to resolve this issue. Here is how you do it:
How to enable native resolution for apps on iPhone 6 and 6 Plus?

iPhone simulator shows blank white screen after application launch

I am new to iPhone application development, and I am building a new calculator just to see how everything works.
I completed my code, but when I run the application, it does not show anything on the simulator.
I have created a number pad, but the screen is blank (white) after the application launches.
Can anyone give me a pointer, please?
I am using Xcode 4.2 and deployment target is 5.0
If you are using empty template for your project them make sure that you are correctly adding your view to window in appdelegate file in function named applicationDidFinishLaunching.
It can also happen when you target for iphone and using xid file related to ipad or another way.
hope it will help you and sorry for my bad english

Universal app splash screen errors

I have created a universal app in x code 4 and am attempting to use their "launch images". I am however running into an issue where once the iPad splash screen displays it will flash to the iPhone splash screen quickly before going into the application. Has anyone else run into this and is there a fix?
Thanks!
I experienced this on a universal app, but it was because I implemented a custom fade sequence that referenced the iPhone default.png during launch (even on an iPad). Once I figured that out, I just set a check for whether the device was an iPad, and if so, disabled the fade call. Do you reference the file in any way aside from the typical launch?

How to get iOS to properly respect the "apple-touch-icon-precomposed" link attribute for a "web app"

I have created several web apps for iOS that employ the apple-touch-icon-precomposed link attribute method for custom home screen icons without the gloss. However, I have run into an issue recently, where, after adding the home screen bookmark and then running the app and exiting the app (via multitasking), gloss is applied to the icon! I don't understand why this happens. I can't reproduce it on an iPad 2, but this keeps happening on my iPhone 3GS running 4.3.3. Also, it seems that it might have something to do with putting it in a folder?
The app is located at http://pattern86.com/apps/color if you'd like to inspect the code.
Basically this is what happens:
Add the app to the home screen. (No gloss--everything's good at this point.)
Quit the app from multitasking (It already shows the gloss here!)
Now the icon has the gloss effect! What gives?
(reposting as an answer, as requested:)
Could be something to do with the icon itself. Does the image have an alpha channel? Do your other, working, apps’?

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.