ios7

different behaviour for current location latitude and longitude in iOS7 to IOS8

两盒软妹~` 提交于 2020-01-13 20:30:07
问题 Using xamarin for current location currentLocation example I used the above Link for getting current location latitude and longitude. In IOS 7 before upgrade to IOS 8 Its shows my current location latitude and longitude on both simulator and device.(Its looks strange for me in simulator for getting current location latitude and longitude). After upgrade to iOS 8 and run same code it give In simulator:(Turn on wifi no sim card location service App always.) Result: latitude = 37.785834.

MPMoviePlayerController showing black screen with sound in iOS 7, works fine in iOS 6

ⅰ亾dé卋堺 提交于 2020-01-13 11:04:41
问题 //introVideoViewController #import <AVFoundation/AVAudioSession.h> #import <AudioToolbox/AudioServices.h> #import <AVFoundation/AVAudioPlayer.h> #import <MediaPlayer/MediaPlayer.h> @property(nonatomic,strong) MPMoviePlayerController *playercontroller; Hi Guys, anybody know what in iOS 7 i can heard my video sound but not the video, it works fine in iOS 6. any comments are greatly appreciated. //introVideoViewController //prepare & init video -(void)prepareIntroVideo { NSURL *url = [NSURL

MPMoviePlayerController showing black screen with sound in iOS 7, works fine in iOS 6

别等时光非礼了梦想. 提交于 2020-01-13 11:04:28
问题 //introVideoViewController #import <AVFoundation/AVAudioSession.h> #import <AudioToolbox/AudioServices.h> #import <AVFoundation/AVAudioPlayer.h> #import <MediaPlayer/MediaPlayer.h> @property(nonatomic,strong) MPMoviePlayerController *playercontroller; Hi Guys, anybody know what in iOS 7 i can heard my video sound but not the video, it works fine in iOS 6. any comments are greatly appreciated. //introVideoViewController //prepare & init video -(void)prepareIntroVideo { NSURL *url = [NSURL

SKShapeNode has unbounded memory growth

与世无争的帅哥 提交于 2020-01-13 09:58:08
问题 If I run this code in a SKScene sublass init method for (int i = 0; i < 100; i++) { SKShapeNode *shape = [SKShapeNode node]; shape.antialiased = NO; CGMutablePathRef path = CGPathCreateMutable(); CGPathAddEllipseInRect(path, NULL, CGRectMake(arc4random()%320, arc4random()%320, 10, 10)); shape.path = path; [shape setStrokeColor:[UIColor blackColor]]; CGPathRelease(path); [self addChild:shape]; [shape removeFromParent]; } and everytime I run this code in my SKView controlling controller SKView

SKShapeNode has unbounded memory growth

女生的网名这么多〃 提交于 2020-01-13 09:58:03
问题 If I run this code in a SKScene sublass init method for (int i = 0; i < 100; i++) { SKShapeNode *shape = [SKShapeNode node]; shape.antialiased = NO; CGMutablePathRef path = CGPathCreateMutable(); CGPathAddEllipseInRect(path, NULL, CGRectMake(arc4random()%320, arc4random()%320, 10, 10)); shape.path = path; [shape setStrokeColor:[UIColor blackColor]]; CGPathRelease(path); [self addChild:shape]; [shape removeFromParent]; } and everytime I run this code in my SKView controlling controller SKView

Import LocalAuthentification.framework crashes on iOS 7.1

倾然丶 夕夏残阳落幕 提交于 2020-01-13 09:48:08
问题 Have a problem with usage of LocalAuthentication and support iOS 7.0 when I'm trying to import LocalAuthentication I'm getting crash if target iOS version is less than 8.0. I tried to mark LocalAuthentication.framework as optional in the build phases and check class availability by calling: var isTouchIDSupported: Bool { if let contextClass: AnyClass = NSClassFromString("LAContext") { return LAContext().canEvaluatePolicy(.DeviceOwnerAuthenticationWithBiometrics, error: nil) } return false }

Keyframe animation key time

99封情书 提交于 2020-01-13 09:04:10
问题 I've just created a keyframe animation like this: [UIView animateKeyframesWithDuration:10 delay:0 options:0 animations:^{ [UIView addKeyframeWithRelativeStartTime:0 relativeDuration:.1 animations:^{ view.alpha = 0; }]; } completion:nil]; And this is a CAKeyframeAnimation that gets created: (lldb) po [self.layer animationForKey:@"opacity"] <CAKeyframeAnimation:0x10a6364b0; keyTimes = ( 0, "0.1", 1 ); values = ( 1, 0, 0 ); calculationMode = linear; delegate = <UIViewKeyframeAnimationState:

Custom cell: fatal error: unexpectedly found nil while unwrapping an Optional value

岁酱吖の 提交于 2020-01-13 08:52:03
问题 I have a table view with custom cell that was created as .xib . I didnt use storyboard. I have a problem that I couldnt fill my table with the data which came from webservice result. Also, I have 4 labels in the custom cell. In my custom cell class, when I try to set labels for each items, It gives me fatal error like above. Here is my code: class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { ... func tableView(tableView: UITableView!, cellForRowAtIndexPath

Bypasses Apple Captive Network Assistant Login in iOS 7

徘徊边缘 提交于 2020-01-13 05:48:08
问题 Since iOS 7 blocked the spoofing of http://www.apple.com/library/test/success.html I am looking for another way to block the Captive Network Assistant login page. Since Apple has the devices checking 1->m websites I can not be sure all are blocked on the company's open network. If there is no way to block it I would be open to changing it to a webpage with an accept button, like a terms page, but I can not find a method to do that either. 回答1: Since IOS7 apple now test more than 200 random

iOS 7 Bluetooth - app that handles events in background even after phone restart

强颜欢笑 提交于 2020-01-13 03:15:28
问题 I want to write a tracking application, which reacts/record when users get in a car and phone automatically pair with Bluetooth hands free. I need also Id of the hands free device. On Android it is easy, using Broadcast Receiver your app listen to broadcasts that device had been paired with phone. It is working even after phone had been restarted and App did not run after restart. Is it possible on iOS(7+) ? 回答1: You can do it by reading the "Performing Long-Term Actions in the Background"