ios6

IOS6 rotation issue

旧城冷巷雨未停 提交于 2019-12-07 05:19:01
问题 I know you have to use the new rotation methods for IOS6, but it seems the method I've written doesn't work. I setted my plist file to allow all rotation but not portraitUpsideDown I then had the following in my appDelegate : self.navController = [[UINavigationController alloc] initWithRootViewController:self.viewController]; [self.window setRootViewController:navController]; //add nav controller to be the root view Then in my rootView, to push to another controller, I have:

Open iOS6 Apple Maps app from a link in a UIWebView

有些话、适合烂在心里 提交于 2019-12-07 04:47:09
问题 If I display a link to a map in a webpage <a href="http://maps.apple.com/?q=Pricketts+Hill+Southampton+Hampshire+SO32+2JW&ll=50.913127,-1.191398">Location</a> it opens the native iOS6 Apple Maps app when clicked in the standard iPhone Safari browser. When I display the same webpage in a UIWebView inside my app and then click the link, my delegate method - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType

Launch splash screen in Landscape mode for iPhone 5

偶尔善良 提交于 2019-12-07 04:08:25
问题 Our universal application is in Landscape mode only. We need to add a splash screen for iPhone 4 & iPhone 5. For iPhone 5 in Portrait we use Default-568h@2x.png . How to set a launch screen in Landscape for iPhone 5? 回答1: According to Apple's Documentation : Providing Launch Images for Different Orientations , Each orientation-specific launch image must include a special modifier string in its filename. The format for orientation-specific launch image filenames is as follows: <basename>

iPad iOS memory management - how to free up “Real Memory” used by UIImageViews, UIScrollViews?

。_饼干妹妹 提交于 2019-12-07 03:18:29
问题 I'm having memory issues with one of my apps and I've identified "Real memory" as defined in Instruments> Activity monitor as a possible culprit. My app allocates large UIImages within UIScrollViews . There's a CIImageFilter applied to one of the images. Activity monitor shows that upon the first pushing of the view controller containing scrollviews with large images, the real memory use jumps to around 300mb. Subsequent pushes/pops raise it to about 500mb: I read that "Live Bytes" does not

iOS Colorwithpattern - using a custom iPhone5 image

邮差的信 提交于 2019-12-07 03:16:50
问题 For my app's loading screen and splash screen, I used up with two different methods to display my iPhone 3, iPhone 4 and iPhone 5 images appropriately. For the loading screen, simply adding -568h@2x to your image is enough to support iPhone5. For the splashscreen, I used a series of (if height == ) cases to check the height of the UIScreen's bounds and sourced the appropriate image to the image view. It was apparent to me here that the -568h isn't universally recognized as an iPhone 5 image.

Program run on iOS 5.1 device can't find SDK with Xcode 4.5

自古美人都是妖i 提交于 2019-12-07 02:48:07
问题 When i run my project at iOS 5.1 simulator , it shows yld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic_copy Referenced from: /Users/apple/Library/Application Support/iPhone Simulator/5.1/Applications/3A003E5F-2C66-494F-BCC1-C3EE82F01464/dogTree.app/dogTree Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation And I don't have 5.1

Checkmark won't show in TableViewCell on iOS7

China☆狼群 提交于 2019-12-07 02:46:53
问题 I'm working on a weird issue right now. My Apps Deployment Target is set to iOS6, so I want to support both iOS6 and iOS7. I just have a simple UITableView, in which the user can select the preferred notification sound. The code for - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath is: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CheckmarkCell";

iOS 6.0 Quicklook QLPreviewController errors with: “Cannot find preview item for loaded proxy”

大憨熊 提交于 2019-12-07 02:09:18
问题 My application has been using the QLPreviewController to display files of all types and in iOS 5.x , it seemed to do so just fine. Now, in iOS 6.0, I get an error and it shows the controller but with a constant loading indicator and never actually loads anything. The error in the log is: Cannot find preview item for loaded proxy: <QLPreviewItemProxy: 0x8dbf480> - file://localhost/Users/me/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/E6A58F8D-71F3-4C7A-B16E-4BA017E318E5

NSSortDescriptor to sort by number of items in Core Data To-Many Relationships

时间秒杀一切 提交于 2019-12-07 02:04:16
问题 It's a long standing problem when using Core Data to-many-relationships that it is very hard to sort a fetch request using NSSortDescriptor on a Parent entity based on the number of children are in a one-to-many relationship to a Child entity. This is especially useful in combination with a NSFetchedResultsController . Typically initializing the sort descriptor as: NSSortDescriptor *sortByNumberOfChildren = [[NSSortDescriptor alloc] initWithKey:@"children.@count" ascending:NO]; results in an

iOS - beginning iOS tutorial - underscore before variable?

和自甴很熟 提交于 2019-12-07 01:46:51
问题 I am starting to learn how some iOS development at the minute and I currently have the Apress beginning IOS6 book that I am working off. In chapter two there is a simple tutorial to show two buttons and a label and when a button is pressed it is shown on the label which one was pressed. I have completed the tutorial but it has raised one question that I can't find the answer to. The tutorial uses ARC (automatic reference counting) in case that makes a difference. Here is the code, The header