ios6

Launch app on iPad in 2x mode with iOS 7

泄露秘密 提交于 2019-12-04 04:21:07
问题 Before iOS 7, iPhone apps that opened on iPads used to launch in 2x mode. iOS 7 seems to force all apps, even if they weren't designed for the iPad, to launch in 1x mode. How can we force our app to launch in 2x mode on iPads using iOS 7? 回答1: iPhone apps on iPads running iOS 7 now always open as a Retina iPhone app, while on iOS 6 they opened as a non-retina apps on non-retina iPads. On Retina iPads (iPad 3 and 4) the apps may display in 1x (iPhone sized) or 2x (taking as much of the iPad

Is it still possible to submit apps targeted for iOS5 or iOS6 to the App Store after the release of iOS7

一曲冷凌霜 提交于 2019-12-04 03:32:06
问题 Like the question says, will I be able to submit iOS5/iOS6 apps to the App Store given that iOS7 is rolled out now? Or do I have to target iOS7 for my builds? I understand that there is a great amount of UI changes, new features, not looking good, etc involved but I just want to know if it is still possible to submit old targets Cheers 回答1: Yes it is still possible to submit apps targeted at older versions, as long as they perform on iOS 7 as well. There is also now an option for people using

On iPhone5 [[UISCreen mainScreen] bounds].size comes back as 320x480?

自古美人都是妖i 提交于 2019-12-04 03:22:36
On iPhone5 [[UISCreen mainScreen] bounds].size comes back as 320x480. Why. In all the posts I'm reading, people are saying that it returns the correct screen size. What is going on here? Am I missing something in the .plist file or something? BTW I am hand coding the GUI, so there is no XIB. Unless your app includes a Default-568h.png in it's bundle, it will run inside a 480 point high legacy screen sandbox on the iPhone 5, and can't draw or see any dimensions outside that sandbox. Note that including this Default-568h.png is only allowed when building an app using Xcode 4.5 and the iOS 6 SDK

What does ^ mean in objective c ios? [duplicate]

折月煮酒 提交于 2019-12-04 03:21:38
问题 This question already has answers here : What does the ^ operator do to a BOOL? (7 answers) Closed 6 years ago . Sorry to ask such a simple question but these things are hard to Google. I have code in iOS which is connected to toggle which is switching between Celsius and Fahrenheit and I don't know what ^ 1 means. self.celsius is Boolean Thanks self.celsius = self.celsius ^ 1; 回答1: It's a C-language operator meaning "Bitwise Exclusive OR". Wikipedia gives a good explanation: XOR A bitwise

Releasing an IOSurface

一曲冷凌霜 提交于 2019-12-04 03:11:29
问题 This question is an extension to: Link-1: Creating an image out of the ios surface and saving it Link-2: Taking Screenshots from iOS app - emulating Display recorder (query on the internals) (Refer Link-1) I have the code for taking screenshots in the background working. But as stated, it requires a sleep of 2 sec to work uninterruptedly, otherwise the OS suspends the app. I figured out the reason could be that I am not explicitly releasing the IOSurface I create. Reason - Using the link http

CustomTableCellView's implementation of -layoutSubviews needs to call super , NSInternalInconsistencyException

时光怂恿深爱的人放手 提交于 2019-12-04 03:08:30
问题 On using autoLayout in custom cell for tableView xib, i am getting following error. When running in iOS 6 simulator CustomCells's implementation of -layoutSubviews needs to call super Assertion failure in -[CustomCells layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2372/UIView *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. CustomCells's implementation of -layoutSubviews needs to

UITextFieldTextDidChangeNotification doesn't get called on ios6 ipad3

时光怂恿深爱的人放手 提交于 2019-12-04 02:49:00
have the following: // watch the fields [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleTextChange:) name:UITextFieldTextDidChangeNotification object:textField1]; and then: -(void) handleTextChange:(NSNotification *)notification { ... } Have a breakpoint in -handleTextChange: , but doesn't get fired. textField is connected in the Interface Builder. Works on iOS6 iPhone/iPad simulator, on iOS5.1 iPad2, but not on iOS6 iPad3. Mr. Cairo Irena is correct, UITextFieldTextDidChangeNotification does not fire when the text field is set programmatically. However I would

UILineBreakMode Vs NSLineBreakMode

与世无争的帅哥 提交于 2019-12-04 02:45:55
I see some UIStringDrawing methods have been updated to use NSLineBreakMode instead of UILineBreakMode in iOS 6.0: E.g. - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode How can I check for this to ensure my iOS 5 users and below continue to use UILineBreakMode? No checking is necessary. These are just enums and they map to the same values You can see there is no real difference here: UILineBreakMode vs NSLineBreakMode enum { NSLineBreakByWordWrapping = 0, NSLineBreakByCharWrapping, NSLineBreakByClipping,

isAvailableForServiceType always returns true?

旧城冷巷雨未停 提交于 2019-12-04 02:28:29
Simple line of code: NSLog(@"Checking on Facebook: %d -- Checking on Twitter: %d",[SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook], [SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]); Problem is that I'm getting 1 for both BOOLs. That's a problem because neither Twitter nor Facebook is setup with an account. This is on the simulator, so wondering if people have experienced this is happening on devices as well? Documentation says that it should only return true if the service is available and at least one account is setup. But I'm getting true

NSInvalidUnarchiveOperationException with ContainerView

泄露秘密 提交于 2019-12-04 02:10:32
Using a ContainerView with an embed seque I'm getting this: * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIStoryboardEmbedSegueTemplate' My searches didn't provide a lot, so: Does this mean "Sorry, only on iOS6" ? Yes, this really seems to be a "iOS 6 only"-feature. I did not see it in iOS 5 either... But didn't find it in the Docs so far. 来源: https://stackoverflow.com/questions/12868255/nsinvalidunarchiveoperationexception-with-containerview