ios7

How to determine if an GMSMarker is inside of GMSPolygon (iOS Google Map SDK)

我的未来我决定 提交于 2020-01-01 05:48:07
问题 I have gotten answer of the same question for apple map kit from this link, but don't have idea about how to check if some location or annotation (GMSMarker) is inside the GMSPolygon in Google Map SDK. So please, if anyone has any idea, help me. 回答1: I got the answer by my own. There is an inline function defined in GMSGeometryUtils.h file in Google SDK: //Returns whether |point|,CLLocationCoordinate2D lies inside of path, GMSPath BOOL GMSGeometryContainsLocation(CLLocationCoordinate2D point,

Edge flicker when transitioning between screens ios7

巧了我就是萌 提交于 2020-01-01 05:46:37
问题 After upgrading to xcode 5, I notice there is a flicker on the edge of the screen when transitioning between two screen. The flicker shows up as a vertical white line on the edge of the frame. This only appears to be happening on ios7. The transition that I have between the two screens is via a storyboard segue. UPDATE: I fixed the issue by adding: self.view.clipsToBounds = YES; to my views. 回答1: I figured out the issue. I had to set clipsToBounds to YES on my views. This fixes the problem.

Generating thumbnail from video - ios7

天大地大妈咪最大 提交于 2020-01-01 05:29:31
问题 I am using this for reference: Getting thumbnail from a video url or data in IPhone SDK The method is using the MPMoviePlayerController class instead of the AVFoundation, and I think I want to use that as well because the people said that MPMoviePlayer way is faster than the AVFoundation way. The problem is, the method used to create the thumbnails, [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame] is deprecated in iOS 7.0. By looking at the apple docs, the

iOS 7.1: Get Core Motion data (accelerometer, gyroscope) while app is in background

橙三吉。 提交于 2020-01-01 05:22:26
问题 I am wondering how I can keep receiving motion sensor values while the app is in background mode. I realize that there are already several posts out there. For example, I have tried How Nike+ GPS on iPhone receives accelerometer updates in the background? which does not work for me. I have also enabled background modes (location updates at the moment) in my App-Info.plist. Are there any working examples out there? Also, if possible, I would not want to implement some of the hacks, e.g. play

iOS 7 programatically per app VPN

天涯浪子 提交于 2020-01-01 05:12:06
问题 I'm developing a iOS 7 app and i would like to know if the feature "Per app VPN" is activated "by hand" (like location services, where you can choose which app can and can't) or I can set it up by code inside the app? Looking around the web I found very little info about it, and apple announcement did not make it any clear also... I was hoping to prompt the user for the VPN configuration when he first open the app, and then, when he is "outside" the internal Wi-Fi, I would automatically

MFMessageComposeViewController much slower on iOS 7

纵然是瞬间 提交于 2020-01-01 04:38:05
问题 I've an app for sending email and text messages. The problem that i'm having is that the loading of the MFMessageComposeViewController much slower on iOS 7 than it was on prior iOS and it becomes worst as the number of contacts increases. Screen goes black for seconds before Messages app opens with the contents loaded. Any thoughts? With the same large number of emails, the MFMailComposeViewController is as quicker as before. Help!! Thanks. 回答1: This issue has been fixed with iOS7.0.3 回答2: I

UIRefreshcontrol jitters when pulled down and held

喜夏-厌秋 提交于 2020-01-01 04:36:12
问题 I have created a UIRefreshcontrol in my tableviewcontroller as follows in the viewdidload method : refresh = [UIRefreshControl.alloc init]; refresh.attributedTitle = [[NSAttributedString alloc] initWithString:@"Pull to Refresh"]; [refresh addTarget:self action:@selector(refreshChatsTableView) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refresh; the problem is that when I pull it down a little long , the table jitters up giving a pretty unpleasant UI experience. Can

Autolayout ignores UITabBar (content under the bar) on iOS7

空扰寡人 提交于 2020-01-01 04:31:50
问题 I've set UITabBar as Opaque in Storyboard, but i still seems to be transulcent. When I set my custom UITabBarController with setBarStyle there is only OpaqueBlack availible. But that the least of the problem. No matter what I do, content of my view gets positioned under the tab bar, like it ignored by ayutolayout. On Storyboard everything looks fine. something messes up in the runtime? Oh the most important thing. The problem occurs on iOS7 only! Here are my ViewController settings in

Xcode 5: “No such provisioning profile was found …” error

久未见 提交于 2020-01-01 04:21:58
问题 I'm trying to distribute a new version of the app (it can be installed OTA) and I got the error: "Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “AdHocProfile”, however, no such provisioning profile was found. " and Xcode gets stuck in the process of automatically fix the error: I have spent a lot of hours in the weekend looking for a solution here and on the internet, only to get rid of one of the two errors I got

What is the UITableView separator color in iOS 7?

孤者浪人 提交于 2020-01-01 04:16:28
问题 What is the color that Apple uses for the separators in a grouped UITableView? Is there a constant or some way I can access this programmatically? 回答1: The inspector tool in the Apple's color picker, reports the color as follows: Hex: #c8c7cc RGB (255): 200, 199, 204 RGB (1.0): 0.783922, 0.780392, 0.8 You can access this value programmatically by accessing the table view's separatorColor property. UIColor *separatorColor = self.tableView.separatorColor; // [separatorColor description] =