ios7

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

Double tap UISearchBar with search delegate on iOS 7 causes UISearchBar to disappear

£可爱£侵袭症+ 提交于 2019-12-21 04:51:42
问题 We have a search bar in the table header. When the user taps on it twice quickly on iOS 7, it disappears. Does anyone have any suggestions what we are doing wrong? 回答1: After lots of trial and errors, I found that when searchDisplayController ends search, searchbar gets disappear, so I have reinserted the searchbar to table header and it worked for me. - (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller { self.searchingFetchedResultsController = nil; if (floor

Cannot dismiss email sheet invoked from UIDocumentInteractionController in iOS 8

霸气de小男生 提交于 2019-12-21 04:42:10
问题 I've got a very simple test app which contains nothing but the following code, attached to a UIButton : - (IBAction)buttonUp:(id)sender { // Build file path NSString* filePath = [[NSBundle mainBundle] pathForResource:@"testfile" ofType:@"txt"]; NSURL *url = [NSURL fileURLWithPath:filePath]; m_interactionController = [UIDocumentInteractionController interactionControllerWithURL:url]; [m_interactionController presentOptionsMenuFromRect:CGRectMake(200, 200, 100, 100) inView:[self view] animated

Crash if backgrounding cocos2d 2.1 app in iOS7 while watching Game Center screens (leaderboard, achievement)

别来无恙 提交于 2019-12-21 04:27:11
问题 I have a 100% reproducible crash here. Crash if backgrounding cocos2d 2.1 app in iOS7 while watching Game Center screens (leaderboard, achievement). It crashes instantly when pushing the home button. Crash on line 275 in CCGLView.m: if(![_context presentRenderbuffer:GL_RENDERBUFFER]) The itching thing is, I downloaded a fresh copy of official cocos2diphone 2.1 the other second, installed its templates and ran the staple application after hooking it up to the same app id as my problematic app

UITableView section index related crashes under iOS 7

给你一囗甜甜゛ 提交于 2019-12-21 04:25:31
问题 I have a simple section index for a table view that appears fine for the first time but then crashes if certain kinds of interaction happens that force a redraw of the section index, either by: Pushing a view controller by tapping on one of the cells Tapping on the search bar in the header of the table view or by making it first responder in other ways Going to an info screen and then coming back to the view controller with that table view. If I comment out the section index (by returning nil

NSURLSession: background upload and then call a service api

梦想的初衷 提交于 2019-12-21 04:12:28
问题 I was trying to use the new ios7 background transfer api to upload some photos to a server. what it happened now is 1) we upload the bytes to s3 2) call a service api to 'complete' the upload i looked at this doc and it seems background NSURLSession doesn't support 'data' task. does that mean i can't do the step 2 in background after the actual upload is done? 回答1: If you want a simpler solution than repurposing NSURLSessionDownloadTask for your "completed" API call, you can round trip a

UITableViewCell in ios7 now has gaps on left and right

寵の児 提交于 2019-12-21 03:58:13
问题 I have a UITableView where, in ios6, my custom cell stretched completely to the left and right sides of the screen. So my square image on the left of the cell was hard up against the phone screen. However, now in ios7, there is a small gap appearing on the left hand side so the image is now away from the side and slightly overlaps my text within the cell. This also seems to be happening in other apps I have that I am now viewing in ios7 - all have a gap on the left and perhaps the right as

Setting Custom HTTP Headers in Alamofire in iOS 7 not working

删除回忆录丶 提交于 2019-12-21 03:43:24
问题 I've tried to set the Alamofire.Manager.sharedInstance.session.configuration.HTTPAdditionalHeaders with my custom HTTP Headers in iOS 7 but I have had no luck. This works fine in iOS 8. Does anyone have any suggestions? 回答1: I got it working. This has no effect on iOS7: Alamofire.Manager.sharedInstance.session.configuration.HTTPAdditionalHeaders = ["CustomHeader": customValue] This however will work on both iOS7 & 8: var headers = Alamofire.Manager.sharedInstance.session.configuration

ios - iOS 7 UITextView is slow after typing lots of text

倾然丶 夕夏残阳落幕 提交于 2019-12-21 03:20:06
问题 I'm having trouble with a slowdown that occurs in UITextView on iOS 7 when typing lots of text. I put a tracer in NSLayoutManager and identified that drawGlyphsForGlyphRange runs N*2 times, where N is the number of times your lines word-wrapped. Here is the sample code: https://github.com/philipkd/UITextViewSlow To reproduce the problem run it on an iPad and attach a physical keyboard. Mash the letters and the space bar for about 15 seconds, and notice it slows down. Then when you try to type

Assertion Failure in UICollectionViewData validateLayoutInRect on ios7

随声附和 提交于 2019-12-21 03:18:25
问题 Assertion Failure in UICollectionViewData validateLayoutInRect on iOS7. I am trying to delete all UICollectionView items, one by one, using a for loop; I posted my code below. I delete the UICollectionView items using deleteItemsAtIndexPaths . It's working perfectly on iOS6 , but crashes in iOS7 with this exception: Assertion Failure in UICollectionViewData validateLayoutInRect I delete the object from collectionArray then self.collectionView , one by one, using indexPath . When I delete the