ios6

Xcode 5 to Xcode 4 Project Run

梦想与她 提交于 2019-12-21 04:55:09
问题 I have a project that I started in iOS SDK 6. I downloaded Xcode 5 Beta with iOS 7 and ran it successfully. However, to submit the project, I need to go back to SDK 6 and Xcode 4. When I do, I get following message for every XIB file I have in the project: How do I fix this so I can compile and run from SDK 6 and Xcode 4? 回答1: Actually this has a very simple answer. Open the Storyboard file on Xcode 5, And then: Open file inspector On Interface Builder Documents section change Open with to

NSAttributedString Color Test

大城市里の小女人 提交于 2019-12-21 04:50:38
问题 What is the correct way to compare, or test, for a particular color attribute of an NSAttributed string? As an example, I'd like to know if the text selection has red text. I have tried several approaches, as you can see below, but none of them ever results in a match. I see the text turn red on screen, and logging the attribute returns: UIDeviceRGBColorSpace 1 0 0 1 - (BOOL)isRedWithAttributes:(NSDictionary *)attributes { BOOL isRedWithAttributes = NO; if (attributes != nil) { // if (

Cannot get passed the Validation stage of submitting app with iPhone 5 support

徘徊边缘 提交于 2019-12-21 04:37:17
问题 This is an old app that's been submitted many times without problems. I've modified the code and the info.plist to support iOS 6 and iPhone 5, but didn't change the build settings at all. I've checked the certificates and provisioning profiles, they are all sound. All adhoc builds ran just fine on our devices. I'm using Xcode 4.5. I build without errors and it archives just fine. It shows up in the Organizer. When I click Validate..., I click through just like normal, pick the right

Floating point textures in OpenGL ES 2.0 on iOS without clamping them to [0, 1]

只愿长相守 提交于 2019-12-21 04:34:08
问题 I need gl_FragColor to "paint" floating point values, which also can be negative (x < 0) and > 1.0. I then want to use the color attachement of the FBO this values where rendered to and use it as a texture in another FBO. Now I have read on http://www.khronos.org/opengles/sdk/docs/man/ (under glTexImage2D) that all values are clamped to a range of [0, 1] and also I didn't find a glClampColor instruction. Is there a possibility to find a workaround here or does somebody have an idea which

iOS play video with MPMoviePlayerController

我与影子孤独终老i 提交于 2019-12-21 04:29:34
问题 I got this piece of code: theMoviPlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:@"/Resources/disc.mp4"]]; theMoviPlayer.controlStyle = MPMovieControlStyleFullscreen; theMoviPlayer.view.transform = CGAffineTransformConcat(theMoviPlayer.view.transform, CGAffineTransformMakeRotation(M_PI_2)); UIWindow *backgroundWindow = [[UIApplication sharedApplication] keyWindow]; [theMoviPlayer.view setFrame:backgroundWindow.frame]; [backgroundWindow addSubview

Has anyone experienced crashes when using ALAssetsLibrary in a background thread?

徘徊边缘 提交于 2019-12-21 04:13:44
问题 I have an ios app which has not crashed in this way on ios 5 which is now crashing consistently on ios 6 on startup after 4 or 5 bg/fg cycles. I've traced the issue to my invocations of ALAssetsLibrary enumerateGroupsWithTypes (the app syncs to the underlying photo library whenever it starts up). The calls to enumerateGroupsWithTypes are made from within a background thread invoked via the dispatch queue so that the sync code can finish even if the user sends the app to the bg before it

Get Facebook uid from ACAccountStore in iOS?

本小妞迷上赌 提交于 2019-12-21 04:11:46
问题 Hi i want to get the Facebook user's UID from ACAccountStore in iOS 6 self.accountStore = [[ACAccountStore alloc]init]; ACAccountType *FBaccountType= [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; NSString *key = @"01234567890123"; NSDictionary *dictFB = [NSDictionary dictionaryWithObjectsAndKeys:key,ACFacebookAppIdKey,@[@"email"],ACFacebookPermissionsKey, nil]; [self.accountStore requestAccessToAccountsWithType:FBaccountType options:dictFB

iOS 6 auto rotation issue - supportedInterfaceOrientations return value not respected

会有一股神秘感。 提交于 2019-12-21 04:11:12
问题 I've got an app where I have a UINavigationController subclass as my rootViewController . I've got a UITableViewController that lets the user edit some settings, it should always be in portrait mode. My app also needs to support all other orientations after I push a MoviePlayer component onto the navigation controller. The UITableViewController subclass has this implementation of supportedInterfaceOrientations: - (NSUInteger)supportedInterfaceOrientations { LLog(); return

Why my completionBlock never gets called in an NSOperation?

瘦欲@ 提交于 2019-12-21 03:47:22
问题 I've sublcassed an NSOperation and set my completionBlock but it seems to never enter even when the operation finishes. Here's my code: A catalog controller class sets up the NSOperation: - (void)setupOperation { ... ImportWordOperation *importWordOperation = [[ImportWordOperation alloc] initWithCatalog:words]; [importWordOperation setMainObjectContext:[app managedObjectContext]]; [importWordOperation setCompletionBlock:^{ [(ViewController *)[[app window] rootViewController] fetchResults]; }]

.app file not found in Derived Data

房东的猫 提交于 2019-12-21 03:39:10
问题 When trying to compile my project I am getting this error and am wondering if anyone knows how to fix it? I've read every answer on SO and elsewhere on the internet pertaining to this kind of linker error. I've tried so many solutions, including the very popular --delete derived data in xcode, quit xcode completely, delete it again on the command line and then restart xcode-- still nothing. This started after I tried to attach a device to my computer (which I've since deleted from the