ios5.1

presentViewController:animated:completion display issues in new ios 5.1 UISplitViewController

爱⌒轻易说出口 提交于 2019-12-06 09:42:16
I've ran into some problems using UISplitViewController with presentViewController:animated:completion . To break the problem down into its simplest form, I've created a simple project with the master/detail template. In the project I've added a + button in the navigation bar of the master view. The plus button creates a navigation controller with a simple blank view. This navigation controller is then presented using presentViewController:animated:completion . However, the presented view only displays in the master view and when you dismiss it, the master view takes up the whole screen. I can

IOS 5.1 UILabel with Heavy Check Mark character ignores TextColor

限于喜欢 提交于 2019-12-05 22:00:17
I've been developing an iOS app and recently "upgraded" to xCode 4.3.1 and the iOS 5.1 simulator and have a very strange issue with just one character. It's called "Heavy Check Mark" in the character viewer and it looks great in my app in 5.0.1 and below and is colored with a .textColor = [UIColor redColor]. In 5.1 it shows up black in the simulator and since my phone is jailbroken I haven't checked it in 5.1 on an actual device. If I put in any other character it shows up red, but this one specific character always shows black. If I put a space before it it shows up red but the spacing is off

iOS 5.1 and Xcode 4.3.1 CodeSign Error

て烟熏妆下的殇ゞ 提交于 2019-12-05 20:19:00
问题 I just downloaded the iOS 5.1 and the Xcode 4.3.1. But when I'm going to test in my device, the Xcode give me the error: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.1' Any idea how to fix it? 回答1: Try assigning your provision code in every fields like the below picture. I had same issue after upgrading to the iOS 5.1 and the Xcode 4.3.1, but it started working fine after I tried this. assign all provisions like this just once. (or try changing "any

Times of calling application:didFinishLaunchingWithOptions: differs between iOS 5.x and iOS 6

做~自己de王妃 提交于 2019-12-05 18:29:45
Subj. In iOS 5.x I have the next consequence of methods calling: -[UIViewController initWithCoder:] -[UIApplicationDelegate didFinishLaunchingWithOptions:] -[UIViewController viewDidLoad] -[UIViewController viewWillAppear:] -[UIViewController viewDidAppear:] But in iOS 6.x it's the next: -[UIViewController initWithCoder:] -[UIViewController viewDidLoad] -[UIViewController viewWillAppear:] -[UIApplicationDelegate didFinishLaunchingWithOptions:] -[UIViewController viewDidAppear:] So... what I gonna do? It's my fault or Apple have changed some logic? in your main.m return UIApplicationMain(argc,

Xcode 4.5 SplitView broken orientation with iOS 5.1 (working on iOS6 thought)

烂漫一生 提交于 2019-12-04 20:51:54
I was working on a splitView project when the Xcode was updated to v4.5. Since then autorotation was working perfectly. After the update, autorotation works only for iOS 6. On iOS 5.1 i am stack in Portrait. I have read all possible solutions but nothing seems to be able to fix my problem. Below is what i have done so far: Checked that All orientations are in my plist. Replaced (BOOL)shouldAutorotateToInterfaceOrientation: with - (BOOL)shouldAutorotate { return TRUE; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; } - (UIInterfaceOrientation

Creating a SecCertificateRef for NSURLConnection Authentication Challenge

你说的曾经没有我的故事 提交于 2019-12-04 01:24:35
问题 I am receiving an authentication challenge from a server my app is trying to connect to, so I have implemented the connection:didReceiveAuthenticationChallenge: method. I need to send a SecCertificateRef and a SecIdentityRef . The identity is working, but the the certificate needs to be sent as a NSArray , and I can't figure out how to convert a CFArrayRef to a NSArray . This is my method for creating the identity and certificate: // Returns an array containing the certificate - (CFArrayRef

iOS: Failed to launch .app file

房东的猫 提交于 2019-12-03 22:39:57
I don't know why it is looking for directory inside my .app file. Every time I run application it installs the App on iPhone but doesn't run and gives below error. Could anyone please tell me where's this settings stored? Thanks. error: failed to launch '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp- ccbvvzjjzvwuerchrpulknxtenoq/Build/Products/Debug-iphoneos/MyApp.app/MyApp' -- No such file or directory (/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ccbvvzjjzvwuerchrpulknxtenoq/Build/Products/Debug-iphoneos/MyApp.app/MyApp) Try with: 1 - remove the app from the iPhone. 2 - remove

Disable automatic screen lock in iOS 5.1

此生再无相见时 提交于 2019-12-03 06:30:29
问题 The following line of code prevents the app from automatically locking the screen after some idle time. [UIApplication sharedApplication].idleTimerDisabled = YES; //write this in applicationDidFinishLaunching It works well till iOS 5.0. But iOS 5.1 does not respect this line and locks the screen after some idle time. How to solve this irritating issue? Thanks. Edit: The same code works fine when its installed in 5.0.1 device. But I dont know why it is not working with 5.1 device. 回答1: Just

UISplitViewController: How force to show master popover in app launch? (portrait)

可紊 提交于 2019-12-03 04:27:22
In an iPad App i'm using the UISplitViewController. I need to force to show the master popover when the app launch in portrait mode. Now I'm using this code and it works well on iOS 5.0. if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { if ([[[AppDelegate sharedAppDelegate] splitViewController] respondsToSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]) { [[[AppDelegate sharedAppDelegate] splitViewController] performSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]; } } But in iOS 5.1 (with the new type of master popover) the behaviour seems to be random

Disable automatic screen lock in iOS 5.1

拜拜、爱过 提交于 2019-12-02 20:05:02
The following line of code prevents the app from automatically locking the screen after some idle time. [UIApplication sharedApplication].idleTimerDisabled = YES; //write this in applicationDidFinishLaunching It works well till iOS 5.0. But iOS 5.1 does not respect this line and locks the screen after some idle time. How to solve this irritating issue? Thanks. Edit: The same code works fine when its installed in 5.0.1 device. But I dont know why it is not working with 5.1 device. Just setting [UIApplication sharedApplication].idleTimerDisabled = YES; in - (BOOL) application:(UIApplication*