iphone-5

Can I use two xibs with one viewcontroller - re: porting to iPhone 5

懵懂的女人 提交于 2019-12-18 10:29:32
问题 I just submitted my first app to the app store (yay it was just approved!). I now want to update it to work with (look nicer on) the larger iPhone 5 screen. I don't intend to change anything other than to change the layout a bit for the larger screen. NOTE: I don't want to have my current xib stretched. Is it possible to create two xib files (ie: copy my current xib file for the main screen) and hook them both into the view controller and have it so that when the app launches, the app detects

Update storyboard to iOS 6 with backwards compatibility [duplicate]

帅比萌擦擦* 提交于 2019-12-18 04:54:04
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5 I'm going to update my app to the new 4 inches display and I figured out that I should check the Use Autolayout checkbox in the inspector. Doing this I loose the compatibility with iOs 5. How can i support the 4" display without loosing this back compatibility? Thank you so much. 回答1: You can use springs and struts to support both form

iPhone 5 (4") bottom toolbar not responding

泪湿孤枕 提交于 2019-12-17 10:59:10
问题 I'm trying to modify an app to work with the new iPhone 5, 4" screen. I've added the new launch image, "Default-568h@2x.png". After that everything seemed good. Middle portion of my views is resizing ok. However I've noticed that in a view where I have a bottom toolbar, the buttons on the toolbar are unresponsive. It looks ok, but tapping buttons does nothing. Same code run in simulator with 3.5" screen works fine. Any ideas? This view is within a navigation controller. It consists of a table

Images for iphone 5 retina display

江枫思渺然 提交于 2019-12-17 10:45:10
问题 iPhone 5 released, with new screen size and resolution. When we used images for iPhone 4 (retina), we just added "@2x" to image name. Can anybody tell me, is it possible to add different images (backgrounds, buttons, etc), for new iPhone screen? And the second question: can I have in my app separate XIB files: for iPhone old, iPhone new (like for iPhone and iPad)? Thank you! 回答1: Here's an except from my blog about this subject: [UIImage imageNamed:] automatically loads @2x versions of images

How do I support the taller iPhone 5 screen size?

元气小坏坏 提交于 2019-12-17 09:32:52
问题 My app shows up letter boxed and I want it to stretch properly to fill the whole screen. I'm creating my main window with: self.mainWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; But I'm still getting the letter boxed behavior. Is there some other setting I need to set to get the full size of the mainScreen on the device? I'm trying to avoid using any launch images if I can. I've tried this: self.mainWindow.autoresizingMask = UIViewAutoresizingFlexibleWidth |

How to switch to different Storyboard for iPhone 5?

安稳与你 提交于 2019-12-17 06:24:42
问题 Just as an app utilizes different storyboards for iPad and iPhone, I would like my app to use a different storyboard for the iPhone 5. Since there is no option in the Info.plist to select default storyboard for iPhone 5, how would I programmatically call the storyboard? I do not want to use AutoLayout for this app unless it is absolutely the last resort. I understand how to detect if a user is using an iPhone 5 or other device with the same screen size. I just need to know how to set the

How to add iPhone 5 large screen support to iOS apps in Xcode? [duplicate]

房东的猫 提交于 2019-12-17 06:13:12
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to deal with iPhone 5 screen size? How can I add support for 4-inch iPhone 5 displays to an iOS app in Xcode? Is this even possible with the latest public Xcode release, v4.4.1? 回答1: Add a new launch image named Default-568h@2x.png to your project and it will work! 回答2: If your application is iOS6 only, the easiest way to make views that layout correctly in both 3.5-inch and 4-inch iPhone 5 designs is to use

DidDiscoverPeripheral delegate method is not called

拟墨画扇 提交于 2019-12-14 01:41:52
问题 I am working with iphone5,and scanning for the device with the UUID.and i want to get list of available bluetooth device in my apps,but didDiscoverPeriphral delegate method is not call. here i give my code. - (id)init { NSLog(@"hello init"); if ((self = [super init])) { CM = [[CBCentralManager alloc]initWithDelegate:self queue:dispatch_get_main_queue()]; } return self; } - (void)viewDidLoad { CM = [[CBCentralManager alloc]initWithDelegate:self queue:dispatch_get_main_queue()]; isOn=NO; [super

Interstitial Ad for DFP not showing Fullscreen in ADMob iPhone 5

三世轮回 提交于 2019-12-13 20:26:31
问题 I am implementing the interstitial ad using Google's AdMob SDK. The Ad shows fine on iPhone 4S and lower. However on iPhone 5, the ad leaves a blank space at the bottom since its not resized properly. The Ad Size is 320x480. According to their docs, The SDK will handle rendering the creative correctly on screens. If I create an Ad of Size 320x568, i get error as "No Ad to Show". How Can I support full screen Ad on iPhone 5? 回答1: The interstitial overlay is full screen, but the creative being

UINavigationBar change title text color and font size

家住魔仙堡 提交于 2019-12-13 13:11:16
问题 I want to change navigation title's font and color..so, for that i've done this below code..but its not working... if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7")) { NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], NSForegroundColorAttributeName, [UIFont fontWithName:@"MyFavoriteFont" size:20.0], NSFontAttributeName, nil]; [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes]; NSLog(@"setTitleTextAttributes