ios8

Removing provisional profile with ios 8 and Xcode 6.0.1

假如想象 提交于 2019-12-07 12:17:55
问题 I cannot seem to remove the provisional profiles on my device using iOS 8 General settings since the profile selection is gone. Xcode 6.0.1 also does not allow for removing provisional profiles. Anyone know how to remove provisional profiles on a device running iOS 8 and Xcode 6.0.1? 回答1: It´s a little bit hidden in Xcode 6: Open Xcode and go to Window --> Devices via the menu bar On the left pane right click on your device Choose option "Show Provisioning Profiles ..." Delete the installed

Custom button in AVPlayerViewController.ContentOverlayView

让人想犯罪 __ 提交于 2019-12-07 12:16:51
问题 I need to add a custom button to the AVPlayerViewController that will appear in both fullscreen and non-fullscreen for an app running iOS 8. Adding a button to the AVPlayerViewController.view or the containing view will work for non-fullscreen but when the player switches to fullscreen the button is no longer visible. I have found that if I add a button to the AVPlayerViewController.ContentOverlayView then it appears in fullscreen and non-fullscreen, but then it doesn't appear that the

How to dismiss two UIViewControllers in iOS 8?

和自甴很熟 提交于 2019-12-07 11:36:20
问题 I am working on iPhone application using Objective C. As I need to dismiss two UIViewControllers at once, so I am using below code : [self.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; This code is working fine in iOS6 and iOS7, but it is not working in iOS8. I have checked by using breakpoint, my ViewController viewDidLoad and viewWillAppear method is calling but my view is not loading at all, so as an output, I am getting blank white

Xcode 6 iOS 8 UIImage imageNamed from bundle issue

橙三吉。 提交于 2019-12-07 11:17:23
问题 I build my project using iOS 7.1 and try to load UIImage view with image that is stored in the /images/cars/car_1.png All images are located in the folder images as on picture below in project tree: So it works perfect for iOS 7.1 and Xcode 5, but when I try to use Xcode 6 and iOS 8 the UIImage instance is equal nil when I try crate image. UIImage *image = [UIImage imageNamed:@"/images/cars/car_1.png"]; po image nil (for iOS 8) it can be also UIImage *image = [UIImage imageNamed:@"/images

Search Bar disappears after tap on it

五迷三道 提交于 2019-12-07 10:56:04
问题 Am trying to implement search nearby places using google maps. The below is the code what I have done so far override func viewDidLoad() { super.viewDidLoad() //Adding Mapview mapView = GMSMapView(frame: CGRectMake(0, 120, self.view.bounds.width, self.view.bounds.height - 120)) self.view.addSubview(mapView) mapView.mapType = kGMSTypeNormal locationManager.delegate = self locationManager.requestWhenInUseAuthorization() let resultTableView = UITableView(frame: CGRectMake(10, 100, 300, 60)) self

Save order of UITableViewCells

社会主义新天地 提交于 2019-12-07 10:45:18
问题 I added the option in my tableview to sort/reorder cells. I used this tutorial: http://www.ioscreator.com/tutorials/reordering-rows-table-view-ios8-swift. Now I'd like to ask how I can save the sorting/order of the cells? I also use Core Data and the fetchedResultsController . 回答1: Add an extra attribute to your Core Data model object that is used to store the sort order. For example, you could have an orderIndex attribute: class MyItem: NSManagedObject { @NSManaged var myOtherAttribute:

iOS8 issue - UIView drawRect is not called

早过忘川 提交于 2019-12-07 10:05:44
问题 I have a very simple UIView , that is only drawing a triangle. It implements a UIView drawRect method that is drawing a figure. It is working fine on iOS7, but when I run the same code on iOS8 it is not even called. Any ideas what has changed on iOS8? My code in nutshell: @interface MyView : UIView @end @implementation MyView - (instancetype)init { self = [super init]; if (self) { self.backgroundColor = [UIColor clearColor]; } return self; } - (void)drawRect:(CGRect)rect { // draw things }

CloudKit Push Notification, App running on background

我的未来我决定 提交于 2019-12-07 09:48:27
问题 When iOS8.2-app is running in the background, it does not receive any push notification, while if it is running on the foreground, it receives the push notifications fine. Any idea what is going on ? Running on CloudKit Development mode, the subscription is for add,edit,and remove, and using the following didReceiveRemoteNotification : -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult)

Show Icons for Custom UTIs in UIDocumentPickerViewController

两盒软妹~` 提交于 2019-12-07 08:49:23
问题 The iOS app I'm working on exports a UTI. The relevant parts of the Info.plist look like this: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.xml</string> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>GPX Document</string> <key>UTTypeIdentifier</key> <string>de.company.app.gpx</string> <key>UTTypeSize320IconFile</key> <string>Doc320.png</string> <key>UTTypeSize64IconFile</key> <string>Doc64.png</string> <key

Autolayout issue for UITextField in ios

社会主义新天地 提交于 2019-12-07 08:44:18
问题 I created UITextField in storyboard. And added its constraints also. I want search icon on left side of UITextField. The code for adding search icon is as follows: self.searchTextField.leftView = searchIconImage; self.searchTextField.leftViewMode = UITextFieldViewModeAlways; [self.searchTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; My application is working fine on iOS8 and its crashing on iOS7. The error is as follows: