ipad

Phonegap page has wrong rotation, shows as portrait in landscape mode

北慕城南 提交于 2020-01-23 08:34:28
问题 I have a (simple) web page packed in a phonegap app. If I start the app it shows the page in portrait direction with landscape page width. So the text starts left bottom to left top. On the right I have a gap where the page should end. This is what I see: Supported orientations are landscape left and right in my ...-Info.plist : <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array

Phonegap page has wrong rotation, shows as portrait in landscape mode

喜夏-厌秋 提交于 2020-01-23 08:34:26
问题 I have a (simple) web page packed in a phonegap app. If I start the app it shows the page in portrait direction with landscape page width. So the text starts left bottom to left top. On the right I have a gap where the page should end. This is what I see: Supported orientations are landscape left and right in my ...-Info.plist : <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array

UIDocumentInteractionController - our own app shows up in list

北慕城南 提交于 2020-01-23 08:32:47
问题 Our app can deal with say Pages files as an example and needs to both hand off files to other applications as well as receive files from other applications. So we edit the plist CFBundleDocumentTypes to say that we can deal with Pages files. ('Default') mode. When the user wants to send a .pages file onto another application (Likely the Pages app) then we call UIDocumentInteractionController. The UIDocumentInteractionController (too) faithfully lists all applications that can deal with .pages

NSInternalInconsistencyException Could not load nib ind bundle

余生长醉 提交于 2020-01-23 06:27:26
问题 I am developing an application for the iPad. The application has following details: Base SDK: 4.2 Deployment Target: 3.2 The application is a game application and it has got 10 rounds. In each round I am loading 6 controllers and after the completion of each round again the same cycle starts. The application works fine till 4 rounds but at the end of 4th round it crashes given following error: "NSInternalInconsistencyException Could not load nib ind bundle:" I have checked for everything

Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?

蹲街弑〆低调 提交于 2020-01-23 05:59:56
问题 I just installed the latest SDK from Apple so I can start learning iPhone / iPad app development. However, I'm having a stupid issue: all my builds get run in the iPad simulator instead of the iPhone simulator, and I have no idea how to change it. 回答1: For now, the iPhone Simulator 3.2 SDK is iPad-only. Test using the iPhone Simulator 3.1.2 SDK edit: as of the upcoming 4.2 SDK, the iPhone and iPad versions of iOS have been unified under a single SDK. 回答2: On your build selector dropdown,

Circular Rotation Of five buttons maintaining equal distance

旧街凉风 提交于 2020-01-23 03:35:11
问题 I want to rotate five buttons on the circumference of an circle (circle with the center (120,120), which is actually center of square view i.e. 240*240) with radius 100. IS it possible to do so, with having interaction with the buttons which are rotating and a proper look. i have tried ' x = round(cx + redious * cos(angl)); y = round(cy - redious * sin(angl)); NSString *X=[NSString stringWithFormat:@"%f",x]; [xval addObject:[NSString stringWithFormat:@"%@",X]]; NSString *Y=[NSString

Subview Doesnt AutoSize When Added to Root View Controller

旧巷老猫 提交于 2020-01-23 03:32:05
问题 I have a root view controller that will have up to 10 or so subviews. I am implementing autorotation/autosize accross the entire app. My problem is this: - When I allocate all the view controllers and add each as a subview to the root controller during startup, everything works as it should. The only problem is that each view controller needs time to initialize. This causes my application to load very slowly. Instead I am trying to allocate the view controllers as they are required. Now I

Iphone Orientation and 2 Nib Files

↘锁芯ラ 提交于 2020-01-22 20:00:09
问题 I am trying to make an app where each view controller (.h/.m) has 2 NIB files... one for portrait, one for landscape. Is this the "standard" way of supporting orientation or must I manually set up the orientation view programmatically? The problem I am facing is that when a user flips the orientation, all views are reset (so the user must re-enter text fields/views input). Here is my orientation method: - (void) changeTheViewToPortrait:(BOOL)portrait andDuration:(NSTimeInterval)duration{

How do I reload the tableview when I am getting the push notification?

纵然是瞬间 提交于 2020-01-22 19:40:09
问题 I have an iPhone application in which I am adding push notifications. When I am receiving the push notification I need to go to a particular view where I am loading a table view after calling a web service here. The problem is when I am standing in the same view. If I got a push message I need to reload the tableview both in the foreground and background. But when I am doing that it is not working correctly. How do I achieve this? - (void)application:(UIApplication *)application

simulating app upgrade in iOS

牧云@^-^@ 提交于 2020-01-22 15:09:48
问题 I am trying to simulate an upgrade from version 2.0 to 2.1. I have version 2.0 hosted in testflight, so I did install it in my device. Then I tried running the app from xcode. However what happened is that the app did not get overlapped, instead it created two apps with the same name. How can I make it such that when I run the app from xcode it overlays the old version? I've made sure that the bundle identifier is the same. 回答1: Well the info you can get while updating can be found @ this