ios8.1

Background Fetch Does Not Appear to Fire

若如初见. 提交于 2019-12-04 15:41:20
First I really appreciate all of the wonderful inputs and comments by all on Stack Overflow. I have read many contributions but have not been able to contribute directly until now. In my app, I have performed the following listed below and have added counter to the app fetch routine to highlight the number of times fetch is called by iOS 8.1. Turned on Background Modes and enabled background fetch. Wrote code for “performFetchWithCompletionHandler”. NSLog message indicate the start and end of the fetch process. Counters are between these messages. Added code in “didFinishLaunchingWithOptions”.

Camera show black screen in ios 8

空扰寡人 提交于 2019-12-04 13:36:21
This code for capturing image one by one from camera,but after taking one image next time camera will open but with black screen(like it,s shutter close).all other ios version its working,but not working in ios 8.please tell me how can i solve it? -(void)openCamera { if(![PickerHandler doesDeviceSupportMediaType:ITEM_TYPE_PHOTO]) { [PickerHandler showNoDeviceSupportWarningForMediaType:ITEM_TYPE_PHOTO withDelegate:self]; } else { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker

NSURLSessionDataDelegate method didReceiveData and others are not called

♀尐吖头ヾ 提交于 2019-12-04 04:42:25
I am having a problem that didReceiveData and didCompleteWithError are not called. Here is my code : class LoginViewController: UIViewController, NSURLSessionDataDelegate, NSURLSessionDelegate, NSURLSessionTaskDelegate { . . . } @IBAction func loginAction(sender: AnyObject) { var sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration() var session = NSURLSession(configuration: sessionConfiguration, delegate: self, delegateQueue:nil) let postParams = "email="+"rabcd@gmail.com&password="+"abcd" let url = NSURL(string:"http://myurl.com/api/v1/user/login") let request =

Web page not getting 100% height in Twitter app on iOS 8

余生颓废 提交于 2019-12-03 13:13:27
问题 OS: iOS 8.1.1 Browser: Safari Phone: iPhone 5C We have a web page which takes 100% height and width. We have locked down the viewport so that the user can not scroll the page vertically or horizontally. This page is shared on Twitter via Safari web browser. When we view the the web page in the twitter app the bottom part of the page gets cut off. We are not able to view the page in its entirety. Even if we change the orientation multiple times still the cut off part is not visible. The height

A long-running operation is being executed on the main thread warning on regular Parse functions

筅森魡賤 提交于 2019-12-03 11:47:03
问题 First of all, I know what this means. The problem is that I'm getting this error on standard calls that can't be converted to background calls. I'm getting this error on app start at: [Parse enableLocalDatastore]; PFInstallation *currentInstallation = [PFInstallation currentInstallation]; I've found out that these methods are causing the trouble by setting a symbolic breakpoint on warnParseOperationOnMainThread and examining the call stack. I can't replace these calls with async ones, and as

Unpredictable delay before UIPopoverController appears under iOS 8.1

て烟熏妆下的殇ゞ 提交于 2019-12-03 11:32:56
问题 This problem happens with SDK 8.1, when running under iOS 8.1, but not when running under iOS 7. It is for iPad only. The problem appears both with simulator and on a hardware device. The code below demonstrates a view controller that contains a UITableView with 1 row, and below that, a UIButton. Tapping on the button or on the row will cause a popover to appear. This works just fine when tapping the button, but when tapping the row of the tableview, the popover appears with some delay. In my

Headphones plugin/out detection in Swift

岁酱吖の 提交于 2019-12-03 09:04:45
im working on an iphone app for iOS 8.1 that works with core audio to generate frequencies and adjust intensities. In the view controller that i generate the frequencies i need to control if the headphones are plugged out in some moment, i'm already controlling if headphones are connected before proceed to my frequencies generator view with the following function: - (BOOL)isHeadsetPluggedIn { AVAudioSessionRouteDescription* route = [[AVAudioSession sharedInstance] currentRoute]; for (AVAudioSessionPortDescription* desc in [route outputs]) { if ([[desc portType] isEqualToString

Web page not getting 100% height in Twitter app on iOS 8

烂漫一生 提交于 2019-12-03 03:21:52
OS: iOS 8.1.1 Browser: Safari Phone: iPhone 5C We have a web page which takes 100% height and width. We have locked down the viewport so that the user can not scroll the page vertically or horizontally. This page is shared on Twitter via Safari web browser. When we view the the web page in the twitter app the bottom part of the page gets cut off. We are not able to view the page in its entirety. Even if we change the orientation multiple times still the cut off part is not visible. The height of the part which is getting cut off is equal to the height of the twitter app container’s header (the

A long-running operation is being executed on the main thread warning on regular Parse functions

人盡茶涼 提交于 2019-12-03 02:08:02
First of all, I know what this means. The problem is that I'm getting this error on standard calls that can't be converted to background calls. I'm getting this error on app start at: [Parse enableLocalDatastore]; PFInstallation *currentInstallation = [PFInstallation currentInstallation]; I've found out that these methods are causing the trouble by setting a symbolic breakpoint on warnParseOperationOnMainThread and examining the call stack. I can't replace these calls with async ones, and as far as I know, these methods are meant to be called regularly from the main thread. Is this a Parse bug

Unpredictable delay before UIPopoverController appears under iOS 8.1

南楼画角 提交于 2019-12-03 01:57:37
This problem happens with SDK 8.1, when running under iOS 8.1, but not when running under iOS 7. It is for iPad only. The problem appears both with simulator and on a hardware device. The code below demonstrates a view controller that contains a UITableView with 1 row, and below that, a UIButton. Tapping on the button or on the row will cause a popover to appear. This works just fine when tapping the button, but when tapping the row of the tableview, the popover appears with some delay. In my testing, first time I tap the row the popover usually appears with little or no delay, but second time