ios7

How to use sqlite in ios 7?

本小妞迷上赌 提交于 2019-12-16 18:04:31
问题 How to use sqlite in ios 7? I'm trying to use code ios 6 and it does not work in ios 7 UPDATE! I export a database, to desktop, change name and drag and drop to xcode Add the code: // SQLite // Conexion DB NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *documentDirectory = [paths objectAtIndex:0]; _databasePath = [documentDirectory stringByAppendingPathComponent:@"ambisi_test.sqlite"]; [self loadDB]; // --> End SQLite -(void)loadDB{

xcode 5 localize storyboard with script delete *.strings file?

一个人想着一个人 提交于 2019-12-14 04:07:12
问题 sorry to make another bother. I'm implement an app, with localization of English and Japanese in xcode 5, using the script file created by André Pinto, based on SIngle Storyboard for multiple languages. Well, before upgrade to xcode 5 (xcode 4.6, I mean), things work properly. But since xcode 5, this error occurs when run the script file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version

How to make .xib files compatible to both iOS7, iOS6 and earlier [duplicate]

帅比萌擦擦* 提交于 2019-12-14 04:00:45
问题 This question already has answers here : Status bar and navigation bar issue in IOS7 (11 answers) Closed 5 years ago . I am using .xib files in my app and I am using xcode5. If I run my app in iOS6 and earlier, the alignments are missing. Any one know about this issue? Do we have to create separate .xib files for iOS7 and iOS6? EDIT: I turned off Autolayout but under iOS6, the views are still going down by 20 pixels. 回答1: in iOS7, the app windows starts from y=0px (in iOS6-, it begins at y

My location button not appearing in view (Google maps SDK, ios)

Deadly 提交于 2019-12-14 03:53:46
问题 Here is my mapViewController.m file: @interface MapViewController() @property (strong, nonatomic) GMSMapView* mapView; @property (weak, nonatomic) IBOutlet GMSMapView *subView; @end @implementation MapViewController - (void) viewDidLoad{ // Create a GMSCameraPosition that tells the map to display the // coordinate -33.86,151.20 at zoom level 6. GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6]; _mapView = [GMSMapView mapWithFrame:self.view

Urban Airship crashes when calling takeoff

╄→гoц情女王★ 提交于 2019-12-14 03:45:09
问题 Upgrading to UrbanAirship 3.0.0 with Xcode 5.0, I'm getting an error when calling this code: [UAirship takeOff:config]; The error is +[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc 2013-09-19 15:02:31.981 [178:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc' This doesn't seem to appear when setting the key "inProduction" to

AFNetworking error in uploadTaskWithStreamedRequest

半腔热情 提交于 2019-12-14 03:44:39
问题 Error Terminating app due to uncaught exception 'NSGenericException', reason: 'Upload tasks in background sessions must be from a file' when i try NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; configuration for NSURLSession work fine but when i use bellow configuration then application crash and give me error. NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration backgroundSessionConfiguration:kBackgroundSessionIdentifier];

Bad receiver type UIRectEdge and Multiple methods named

空扰寡人 提交于 2019-12-14 03:28:01
问题 I recover this code from disk and try build it on xcode 5.0.2 for ios. In xcode 4 this code work but actually not: else { for (int i=0;i<pieceNumber;i++){ for (int j=0;j<pieceNumber;j++){ CGRect rect = CGRectMake( 0, 0, SHAPE_QUALITY*piceSize, SHAPE_QUALITY*piceSize); PieceView *piece = [[PieceView alloc] initWithFrame:rect]; piece.delegate = self; piece.image = [array objectAtIndex:j+pieceNumber*i]; piece.number = j+pieceNumber*i; piece.size = piceSize; piece.position = -1; NSNumber *n =

Missing X86 code in iOS build?

非 Y 不嫁゛ 提交于 2019-12-14 03:12:27
问题 I'm suddenly getting errors and warnings in a build that was working fine a few weeks ago - I went on holiday, came back, no workie. The only one of concern is this error: ld: warning: ignoring file /Users/maury/Develop/MARL/ThirdParty/Flurry/libFlurry_4.2.3.a, missing required architecture x86_64 in file /Users/maury/Develop/MARL/ThirdParty/Flurry/libFlurry_4.2.3.a (4 slices) Either the error string is wrong and it's actually looking for some other architecture, or I'm very confused as to

How to make custom transition for iOS7 that are compatible with iOS8?

与世无争的帅哥 提交于 2019-12-14 02:39:57
问题 I want to create a custom transition for my view controllers. I have begun to gather some information about the new API introduced in iOS7 . But I have been told that this API somehow changed in iOS8 . The video 214 of WWDC 2014 tackles this point. And some people told me that the custom transitions they created for iOS7 don't work properly on iOS8 (see for instance here and also there). So my question: Could you give some general advice, a guideline, for creating a custom transition that has

Custom UIBackButtonItem and UINavigationController gestures

僤鯓⒐⒋嵵緔 提交于 2019-12-14 02:35:08
问题 I need to have a UINavigationBar with custom UIBarButtonItem . I know how to do it (with custom view), but there is one problem: Using the default back button item gives us the iOS 7 gestures, so we can swipe to go back etc., using custom UIBarButtonItem item doesn't give us these gestures. How can we create custom UIBarButtonItem and maintain the iOS 7 gestures ? I dont want to build whole swipe gesture from beginning, I don't believe that it is the only way. 回答1: Gestures can be basically