ios10

UIAlertController + addTextField orientation issue from iOS10 on iPad

*爱你&永不变心* 提交于 2019-12-11 05:14:01
问题 When I use UIAlertController with addTextField on iPad, the keyboard doesn't rotate properly from iOS10. It was working fine with iOS9, does anybody know the way to fix it? UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"title" message:nil preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *done = [UIAlertAction actionWithTitle:NSLocalizedString(@"Done", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { UITextField *textField = alert

Appcelerator Live View Console.Log not working

与世无争的帅哥 提交于 2019-12-11 05:05:39
问题 Odd one this. Ever since upgrading to iOS10 and the latest Appcelerator SDK (5.5.0), I can't get even a simple console.log("hi!") to show anything in the console when I'm testing on an iPhone 6s Plus connected to my Mac via USB, using LiveView. I've tried changing it to Ti.API.info("hi!") - which I believe is the old way to do it - to no avail. If I change it to alert("hi!") , that works fine. However, it's not as useful as console.log used to be when developing things which MUST be tested on

Best way to deinit Initial view controller?

情到浓时终转凉″ 提交于 2019-12-11 04:24:51
问题 I have a loading view controller when my app starts(is is my initial view controller).When an animation in this view controller finished I want it to show another view controller and dismiss the view controller with the animation. The loading view controller is the initial view controller, I have this code when UIStoryboard.mflMainTabBarViewController(). returns the view controller that I want to present func animationDidStop(_ anim: CAAnimation, finished flag: Bool) { let animationID = anim

iOS: Could not get outgoing call events in CallKit

拜拜、爱过 提交于 2019-12-11 04:18:58
问题 I'm making a call through my app using 'telprompt', but when call ends I want a new view controller to be shown and hit an API to get data, So I want to receive an event to open a pop up and hit API. I have tried using CallKit, but Delegate method is not getting called. here is my code. #import <CallKit/CXCallObserver.h> #import <CallKit/CXCall.h> I have conform to CXCallObserverDelegate In viewDidLoad: CXCallObserver *callObserver = [[CXCallObserver alloc] init]; [callObserver setDelegate

Swift 3 preload from SQL files in appDelegate

一世执手 提交于 2019-12-11 04:14:07
问题 I am attempting a swift 3 conversion. I was preloading data from sql files in my swift 2 project. I am unsure how to make this work in swift 3.0? Below is my swift 2 appDelegate file. In swift 3 the core data stack has changed enough, that I do not know where to try to reuse the same code that worked for me with swift 2. The code i was using that worked is listed under the comment "added for SQLite preload". Thank you // MARK: - Core Data stack lazy var applicationDocumentsDirectory: URL = {

Configuration profile installation on iPhone Programmatically

梦想的初衷 提交于 2019-12-11 02:31:12
问题 I implemented code mentioned in below link to install Profile in iPhone programmatically. and also Installed a local server like RoutingHTTPServer. https://stackoverflow.com/a/21014275/3825016 Below is the code from the above link, - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. _httpServer = [[RoutingHTTPServer alloc] init]; [_httpServer setPort:8000]; // TODO: make

iOS10 widget “Show more” “Show less” bug

蹲街弑〆低调 提交于 2019-12-11 02:11:26
问题 I have implemented the new widget for iOS 10 and I have used the following code to set the height for it: @available(iOSApplicationExtension 10.0, *) func widgetActiveDisplayModeDidChange(activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) { if activeDisplayMode == NCWidgetDisplayMode.Compact { self.preferredContentSize = CGSizeMake(0.0, 350.0) } else if activeDisplayMode == NCWidgetDisplayMode.Expanded { self.preferredContentSize = desiredSize } } And it´s working fine,

PhoneGap Geolocation is blocked in iOS10

陌路散爱 提交于 2019-12-11 01:22:11
问题 My Phonegap app leverages the (Cordova 3.8) webviews 'W3C Geolocation API'. Since upgrading from iOS 9.x to iOS 10 (beta) however, using navigator.geolocation.getCurrentPosition(...) now returns an error: Access to geolocation was blocked over insecure connection to http://localhost. ERROR(2): Origin does not have permission to use Geolocation service I do not currently use the Cordova Whitelist Plugin. Would using that help or is there a simpler fix? 回答1: I added the geolocation plugin

AVLayerVideoGravityResize does not match on new devices, iOS 10?

空扰寡人 提交于 2019-12-11 00:34:43
问题 Camera with a full screen live preview, previewLayer!.videoGravity = AVLayerVideoGravityResize make an image ... stillImageOutput?.captureStillImageAsynchronously( from: videoConnection, completionHandler: the full-screen live preview will or should precisely match the still image. (For clarity: say you accidentally use AVLayerVideoGravityResizeAspectFill . In that case the live preview will NOT match the still image - you'll see a "jump" as it is stretched.) However... If you try the below

UIImagePickerController cameraViewTransform is not working in iOS 10

风格不统一 提交于 2019-12-11 00:15:46
问题 i have implemented camera overlay view in my application. camera overlay view working good in iOS 9. but iOS 10 cameraViewTransform not working how to resolve this problem. please guide me. Thanks my working code CGSize screenBounds = [UIScreen mainScreen].bounds.size; CGFloat cameraAspectRatio = 4.0f/3.0f; CGFloat camViewHeight = screenBounds.width * cameraAspectRatio; CGFloat scale = screenBounds.height / camViewHeight; picker.cameraViewTransform = CGAffineTransformMakeTranslation(0,