Converting Iphone Screen to Ipad Screen - iphone

I created an Iphone app and I am trying to convert them to Ipad screens. I have a login page which was created for Iphone, I tried to change it to Ipad by changing Project Settings screen and changed the emulator. But the Login page looks weird on Ipad Emulator, controls are get stuck to the upper left corner. How can I fix it to look centered on Iphone and Ipad?
here is the screen on xcode
here is the screen on emulator

You need to adjust the autolayout settings for each object.
http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

Related

iOS 7 in iPad eliminate x2 button for iPhone app

I am new here. I have an iOS 6.1 iPhone application. When I try to run it in iPad running iOS 7, the x2 zoom button at the right corner is gone and my iPhone application UI mess up with the wrong position. The UIWebView is stretched over size for iPad. How can I solve this problem? Should I change it manually?
As my comment seems to be the actual answer, I post it again as an answer.
Setting the App to be an Universal App and only providing a Storyboard for iPhone/iPod will result in this behavior. The iPad tries to use the iPhone Storyboard to display the App on the whole screen in full size without the 2x button. Thus all elements in the App will be positioned according to their positions defined for iPhone size display.
The solution here is to set the App available for iPhone only (in App target > Deployment info > Devices > [select iPhone here]) instead of Universal. This will result in the iPad to display the App on iPhone size and provide the 2x button to zoom in.

iPhone app incorrect autoresizing on iPad

I have developed iPhone app. When i try to run this app in iPad simulator, it doesn't show me 1x/2x zoom button but application autoresize view in wrong way.
I don't want to make ipad native nibs/views so i need to disable autoresing the application.
Can somebody help?
EDIT: In 'Summary' tab, is 'iPhone' selected in the Devices drop-down menu.
EDIT2: When starting application, splash screen loads correnctly in small 1x window, than when firt view loads it switches to full screen.
Go to the Target's settings, 'Summary' tab, and choose 'iPhone' instead of 'Universal' in the Devices drop-down menu.
Go in your Application-Info.plist and check if there is something with iPad.
On a project, I started with doing an app Universal, only developped the iPhone theme. Then, to show to the client a pre-version, I tested on an iPad and the screen was quite reverse (iPhone : Portrait mode, iPad Landscape). I figured that in the Info.plis there was still the iPad : Landscape. Maybe something like that.

image doesn't show up in appstore version of an iPhone app

I have an image in an app that shows up fine when debugging on the device from Xcode or distributing ADHoc, but when downloading the app from the store, the image doesn't show for iPhone 3G.
I've tried extracting the IPA for the app and found that both the low-res and #2x version of the image are present.
What could be causing this?
Solved. The image was being used as the background of a button. The issue wasn't a missing image. It was that the button was being positioned offscreen. It was being set as a subview of the tabbar of a TabBarViewController. I was using the height of the tabbar to calculate the center of the button. I replaced that with hard coded values to fix the problem.
Why was it only happening with iPhone 3G and only when distributing? I'm really not sure, but I was able to use the remote logging in the TestFlight SDK to figure out that the position of the button was off by >400 pixels.

Setting Wallpaper (Background image) in iOS Simulator home screen or lockscreen

I was scratching my brains over something when this popped in my mind. Can we set the simulator's home-screen background image to an image of our choice? Case in point is Xcode 3.2.2 simulator 3.1.3.
Certain versions of the simulator appear to support this, not just for the home screen but for the lock screen too (which you get to with Command ⌘+L):
Drag an image from your Mac to the simulator.
Mobile Safari opens. Click and hold the image.
Choose Save Image.
Go to Photos.app, and into the photo album.
Choose your image, and set it as the home screen background like you do on a device.
You may need to restart the simulator.
Note that since this isn't exactly officially supported, it may or may not work for you depending on your version of Xcode or the simulator.
It is possible (again) with the iOS Simulator version 6 (for iOS6).
First, add some images to your photo library. You can do this by using Mobile Safari (either surf the web or drag a local image to the simulator). Then perform a long press and save to camera roll.
Second, open "Photos", select the image and set as Background.
Third, restart the simulator (this irritated me at first, as it doesn't seem to work immediately)
How to do this for the Simulator in 11.4.
Drag and drop a photo on the phone.
Go to photo app and view app.
On the bottom bar you should see 3 icons. Hit the icon with the Arrow coming out of the box like you would AirDrop it to someone.
On the Options panel you should see Use as Wallpaper right below the AirPlay option.
Cheers
Hmm. Probably, since you cannot set backgroundimage on your homescreen(exept from the locked view) on on actual iPhone pre iOS4, you cannot do so in the simulator either.
Dragged the image onto the simulator (iOS 9.3) as #boltclock suggests, but nothing happened. However, I then noticed that the images I dragged were showing up in the Photos app on the simulator. From there I just set the wallpapers the same way that you set them on a physical device. Did not need to restart the simulator.
I thought I wasn't able to do this, but then I dragged the bottom row of options to the left and low and behold, there is the "Set as wallpaper" option.
:-)
Since this is an old question, I want to confirm this works in Simulator 13.2 for the iPhone 13 Pro Max (I'm running it on on macOS 12.2 Monterey).
In the simulator take Safari to the image you want to set as the background
Right click (or 2-finger press-click on trackpad)
Selected "Add to Photo"s from Pop-up menu
Open Photos app, and click the 'sharing' icon (box with up arrow coming out of it)
Scroll the popup upwards until you see the "Use As Wallpaper" menu item (if you have a Magic Trackpad, you can scroll with a three-finger swipe-up up on the screen)
That's it. You can set the Home and Lock screen that way.
While developing an iOS iPhone app using the simulator, I copied a space scene with just stars for the background and and moved the app icons all to the home screen except left my app icon alone on a different page that way I minimized light and clutter.

iPad UI clipped in simulator

My views created for iPad form factor look fine in Interface Builder. However, when I debug my app in iPhone Simulator 3.2 (with Hardware -> Device set to iPad), I see the UI clipped and about half size. There is a 2x button at the bottom which lets me zoom in. But this just shows the same clipped UI in double size.
This is really weird since I have created the XIB for iPad form factor and it is supposed to fit iPad completely. Any ideas what I might be doing wrong?
I am using iPhone SDK 3.2 downloaded on 4/30/2010.
Thanks.
-Raj
It sounds like you've accidentally created an iphone project, rather than an ipad project. In the "New Project Dialog", make sure you select iPad from the "Product" dropdown in the middle of the dialog:
alt text http://www.freeimagehosting.net/uploads/7f49d44254.png