ios9

(XCode 7 + iOS 9 + iPhone 4s/iPhone5 only) issue: “malloc: *** mach_vm_map(size=1048576) failed (error code=3)”

﹥>﹥吖頭↗ 提交于 2019-11-30 08:52:57
I know the issue is related to memory allocations, but I get it in only iOS 9, XCode 7. In XCode 6.4, iOS 8.4, it works just perfect, no issue at all at any ways. In iOS 9, XCode 7, it just crashes very frequently giving this error. malloc: *** mach_vm_map(size=1048576) failed (error code=3) *** error: can't allocate region securely *** set a breakpoint in malloc_error_break to debug Any suggestions? I am working on memory issues, but I wonder if there were too many memory issues, then why did it work in iOS 8.4 and not in iOS 9? Also, I get all my UI whited out! Like navigation bar has no

WKWebView notification when view is actually shown

心已入冬 提交于 2019-11-30 08:48:24
I want to take a screenshot of a WKWebView . I call the method drawViewHierarchyInRect (with screen updates set to true ) right after the web view finished loading - for this purpose I observe the loading property of the web view. However, I noticed, that at the time the web view notifies me that loading has finished, it doesn't actually display itself on the screen. That's why the screenshot is always only white. When I take the screenshot 0.5 seconds after loading (which is obviously too long) the screenshot shows the desired result. My problem is: I don't know when the web view actually

Display Separator only for the Available CellForRow in UITableView

时光怂恿深爱的人放手 提交于 2019-11-30 08:47:25
I am using UITableView with custom cell. It is working fine but problem is when there is only one or two cell in UITableView. It is giving the separator for the empty cell also. Is it possible to display separator only for the cell that is load with my custom cell? You need to add an empty footer view to hide empty rows from a table. Swift: In your viewDidLoad() self.tblPeopleList.tableFooterView = UIView.init() Objective-C: Easiest way: in your viewDidLoad method, self.yourTableView.tableFooterView = [[UIView alloc] initWithFrame : CGRectZero]; or self.yourTableView.tableFooterView = [UIView

Push notifications are not working in iOS 9

£可爱£侵袭症+ 提交于 2019-11-30 08:33:17
I have upgraded my devices to iOS 9 and my Xcode environment to 7.0 beta. Push notifications are not working in iOS 9? Here is my code: float ver = [[[UIDevice currentDevice] systemVersion] floatValue]; if(ver >= 8 && ver<9) { if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerForRemoteNotifications]; UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil]; [

iOS 9 disable support for right-to-left language

做~自己de王妃 提交于 2019-11-30 08:25:24
My iOS app is in Arabic (right-to-left) language only. Prior to iOS 9 the views layout and view animations were all by default left-to-right. So, I had customised the complete app and had reversed the default behaviour e.g. back button in navigation bar was set to be on the right instead of default left. But now when the app is compiled using latest SDK (Xcode 7 beta 4), everything is the opposite of what I need. Is there any simple way to force the app to show views and behave like iOS 8 and 7? I searched and found a solution but it involves changing the constraints(Uncheck the "Respect

SFSafariViewController Remove OAuth2 Cookie

三世轮回 提交于 2019-11-30 08:24:48
I have an iOS application that authenticates with Uber API using OAuth2 in a UIWebView . When upgrading to iOS 9, I run in to the issue of ATS blocking the https request for the login page. I then added an exception for the Uber login page, but then noticed the login page makes several other requests to Facebook, Amazon Web Services, and other websites, all getting blocked by ATS. I don't want to have to maintain a list of exceptions for the the Uber login page, as Uber can easily change their page and my app won't have the correct exceptions. So I decided to give SFSafariViewController a shot

Specify location for ipa file in Xcode 7 Ad-Hoc release

拜拜、爱过 提交于 2019-11-30 08:04:46
UPDATE: This issue is still present in Xcode 7.1 beta 2. Looks like this will be here a while. I just updated to Xcode 7 GM and am in the process of generating ad-hoc archives for various builds. However, it does not appear that you can specify the directory path where you want to save the resulting .ipa file. It is going straight to the desktop in a pre-named folder that includes a timestamp. Steps to (hopefully) reproduce From the main menu, select Product --> Archive In the resulting window, select 'Export...' Choose 'Save for Ad Hoc Deployment' and select 'Next' (other methods seems to

Xcode 6 with iOS 9?

孤者浪人 提交于 2019-11-30 08:01:39
问题 I'm fairly new to iOS development and I upgraded my device to iOS 9.0 beta, to see how my app faired. However, I did not upgrade to Xcode 7 beta. I'm getting an error that says my device is now "ineligible", specifically, iPhone (3) may be running a version of iOS that is not supported by this version of Xcode. Is this standard? Do I have to upgrade to Xcode 7 if I'm running iOS 9.0? 回答1: Yes, you need to install Xcode 7 in order to develop for iOS 9. You are able to keep Xcode 6 running

FBSDKApplicationDelegate application openURL:sourceApplication:annotation deprecated

烈酒焚心 提交于 2019-11-30 06:47:53
with iOS9 application openURL:sourceApplication:annotation is deprecated func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation) } so now we should use; func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {} FBSDKApplicationDelegate what to set for sourceApplication parameter (String) Muthu Ram func application(app: UIApplication,

How to open URL schemes from Safari in iOS9?

烂漫一生 提交于 2019-11-30 06:27:09
I was able to open apps from safari this way: window.location = 'myapp://do/xx'; or open facebook app: window.location = 'fb://'; But this stopped working in iOS9. How can I open apps using URL schemes in safari? IOS 9 URL Shchemes Update : iOS 9 introduces LSApplicationQueriesSchemes to allow apps to query if other apps are installed. 1- If a url scheme is declared and calling canOpenURL(scheme) YES if a installed app supports that URL scheme NO if no app supporting that url syslog will show canOpenURL: failed for URL: "urlScheme://" - error: null 2- If a url scheme is not declared and