ios7

iOS 7: UIAlertView created in UIActionSheet delegate function cannot auto rotate

陌路散爱 提交于 2019-12-22 18:10:56
问题 The issue only can be reproduced in iOS 7. In the delegate function: - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex , if a UIAlertView is created, the alert view cannot auto rotate. Here is the sample code: - (IBAction)buttonTapped:(id)sender { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"action sheet" delegate:self cancelButtonTitle:@"cancel" destructiveButtonTitle:@"ok" otherButtonTitles:nil]; [actionSheet showInView:self

View does not appear because of iOS 7

对着背影说爱祢 提交于 2019-12-22 18:04:13
问题 I tried my app on my iPhone with iOS 7 and everything works perfectly except one thing. On iOS 6 versions, when I executed the following code, the loading view (with the activityindicator) appeared and disappeared at the end of the loading. On iOS 7, the view does not appear at all during the loading. self.loadingView.alpha = 1.0; [self performSelector:@selector(accessServices) withObject:nil afterDelay:0.0f]; AccessServices method : - (void)accessServices { // Getting JSON stuff // The code

CALayer renderInContext iOS7

Deadly 提交于 2019-12-22 17:39:05
问题 I'm rendering multiple layers to get one final image. One of the images contains a face, and another one contains a background with a transparent gradient around the face so that the real background is hidden. In iOS6 it works perfectly but it is creating a weird effect with the transparent gradient in iOS7. The code: CGRect rect = [[UIScreen mainScreen] bounds]; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); [faceImageView.layer renderInContext

How to change duration of executed SpriteKit action

与世无争的帅哥 提交于 2019-12-22 16:58:41
问题 I am executing the following SpriteKit action: SKAction *moveLeft = [SKAction moveByX:-moveX y:0 duration:moveDuration]; SKAction *moveRight = [moveLeft reversedAction]; SKAction *sequence = [SKAction sequence:@[moveLeft, moveRight]]; [my_node runAction [SKAction repeatActionForever:sequence]]; I want to slow down the action for few seconds (this happens as a result of a user tap), and after that return to the normal speed. I have tried to do so by using [my_node runAction [SKAction speedTo:

How to change duration of executed SpriteKit action

廉价感情. 提交于 2019-12-22 16:58:07
问题 I am executing the following SpriteKit action: SKAction *moveLeft = [SKAction moveByX:-moveX y:0 duration:moveDuration]; SKAction *moveRight = [moveLeft reversedAction]; SKAction *sequence = [SKAction sequence:@[moveLeft, moveRight]]; [my_node runAction [SKAction repeatActionForever:sequence]]; I want to slow down the action for few seconds (this happens as a result of a user tap), and after that return to the normal speed. I have tried to do so by using [my_node runAction [SKAction speedTo:

Why does it seem that my ios app only continues background task when running from xcode

断了今生、忘了曾经 提交于 2019-12-22 14:08:52
问题 Here's the setup: I'm building an iOS app that uses a 60 minute timer. Once started I want it to notify the user regardless of the state of the phone (sleeping or viewing my app) to do something when that 60 mins is up. To do this I have my local notification setup to be executed in my timers method within the appropriate ViewController.m file: // what happens when the timer ends if (secondsCount == 0) { [countdownTimer invalidate];// stops the countdown countdownTimer = nil; hourCountDown

Selecting one UITableViewCell selects the other cells at that same position when you scroll up or down

﹥>﹥吖頭↗ 提交于 2019-12-22 14:05:37
问题 I have a UITableView with Dynamic Prototypes. I implemented the code below so that when I select a row, it will be marked and the previously selected row will be unmarked. However, for example, the row I selected is displayed in the middle of the screen, then when I scroll up or down, another cell (which is in the same middle position of the screen) is marked. In short, every view, there is a selected cell at the middle. Please advise. - (NSIndexPath *)tableView:(UITableView *)tableView

videoMinFrameDuration is Deprecated

瘦欲@ 提交于 2019-12-22 14:03:56
问题 When I have updated Xcode from 4.6 to 5.1 `'videoMinnFrameDuration' is deprecated in ios7 - (void)setFrameRate:(NSInteger)frameRate; { _frameRate = frameRate; if (_frameRate > 0) { for (AVCaptureConnection *connection in videoOutput.connections) { if ([connection respondsToSelector:@selector(setVideoMinFrameDuration:)]) connection.videoMinFrameDuration = CMTimeMake(1,_frameRate); 回答1: For one thing, you're using an outdated version of GPUImage, as this is has been fixed in the framework code

Way to Programmatically Reboot iOS Device?

爱⌒轻易说出口 提交于 2019-12-22 13:56:30
问题 Basically, I'm looking for any way to go about this at all, no matter how cumbersome or unintuitive, so long as it can be done on iOS 7 (which the third party SBSettings framework currently cannot), and can be done on a non-jailbroken device. This is for an app which will be loaded into iPads in a physical enclosure so the power button is inaccessible. The device itself will be in single app mode, which cannot be enabled or disabled except through our network-accessed MDM solution. The issue

iOS6/7 stop sound going to background using web audio API

限于喜欢 提交于 2019-12-22 13:33:02
问题 There are different solutions for the issue when you go to the background in the iPhone or iPad and the sound continuous playing, the most of them for the HMTL5 audio tag, but are not relevant if you are using Web Audio API because there are not an event like "timeupdate" and is a different concept of course. The Page Visibility API works in iOS7 only if you change of tab, but doesn't if you go to the background, in iOS6 not at all. Someone knows any way to stop/mute a sound using Web Audio