ios7.1

ios7.1: push notification badge update issue

[亡魂溺海] 提交于 2019-12-23 12:04:08
问题 I have setup Push Notification in One of my current Project. I have followed all instruction required for Push notification. that working fine in [tag: ios7] but in 7.1 i got issue in badge update when my application in background Mode. My code is Following:- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge |

Height of programmatically created UIProgressView is ignored in iOS 7.1 (always 2)

纵饮孤独 提交于 2019-12-23 05:15:07
问题 Adding a UIProgressView to a view programatically ignores the size.height value, apparently due to NSAutoresizingMaskLayoutConstraint always being 2. Other than increasing the height, everything else about the UIProgressView is standard. A code snippet where progressViewFrame.size.height = 40.0: self.progressView = [[UIProgressView alloc] init]; // initWithFrame produces the same issue [self.progressView setFrame:progressViewFrame]; [self addSubview:self.progressView]; results in the standard

Prevent AVCaptureSession from crashing once user toggles Camera privacy settings

我只是一个虾纸丫 提交于 2019-12-22 08:39:22
问题 Been using AVCaptureSession to record barcodes, and it works well. I also have followed the advice on stack overflow (How to properly release an AVCaptureSession) to [_session stopRunning]; [_prevLayer removeFromSuperlayer]; _prevLayer = nil; _session = nil; in ViewWillDisappear, with the hope that it properly releases the CaptureSession. (Other answers in SO refer to pre ARC time) However, when I toggle the camera privacy settings for the App (E.g. from enabled to disabled, or vice versa),

Facebook iOS SDK gives FBErrorCategoryUserCancelled for no reason?

落爺英雄遲暮 提交于 2019-12-22 08:30:14
问题 I've been rejected from the App Store since the tester was unable to login to my app with Facebook Login (I use the latest Facebook iOS SDK 3.13) They've sent me a screenshot indicating "Facebook: Login cancelled". I've searched my app's code, and the only way this message could ever be shown is if this Error message was triggered by the Facebook SDK: "FBErrorCategoryUserCancelled". Assuming they didn't press "Don't Allow" when the Facebook login asked for permissions, why did Apple see this

Customize Button shape in ios 7.1

只谈情不闲聊 提交于 2019-12-22 07:55:12
问题 Apple has added Button shape feature in ios 7.1. But I need to make it disable for my app or change its default color, shape to match UI of my app. It is possible without using custom type button? Please help me. 回答1: Sub class the button and try which shape you want.... #import "YourButton.h" #import <QuartzCore/QuartzCore.h> @implementation YourButton - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // Initialization code } return self; } - (void

UITapGestureRecognizer on UITextField no longer works in IOS 7.1

喜欢而已 提交于 2019-12-22 06:36:00
问题 I have a UITapGestureRecognizer attached to a UITextField to get a "drop down" like effect. When the UITextField is tapped, I present a UIPopover with the content. This worked like a charm pre 7.1 - Now the UITextField just becomes first responder, and the gesturerecognizer is totally ignored. Tried setting delaysTouchedBegan to YES but it didn't help.Any help? 回答1: Why to use UITapGestureRecognizer , better to use UITextFieldDelegate methods - (BOOL)textViewShouldBeginEditing:(UITextView *

How can the appearance of Button Shapes enabled through the Accessibility settings be influenced in iOS 7.1?

血红的双手。 提交于 2019-12-21 12:42:28
问题 The release of iOS 7.1 brings the availability of Button Shapes under the Accessibility settings. I've noticed that their appearance can be inconsistent within my app. Mostly, I'm getting a black background after having implemented a UIBarButtonItem using Interface Builder. Touching the button but not fully tapping it results in the image turning gray. How can the appearance of the button shapes be influenced so that they will not look so out of place as having a solid black background and

Architecture linking error after Xcode 5.1 upgrade

五迷三道 提交于 2019-12-21 05:39:18
问题 I am having these errors: libGPUImage.a, file was built for archive which is not the architecture being linked (armv7s), libPods.a, file was built for archive which is not the architecture being linked (armv7s) and more... These are my project settings: Architectures:armv7,armv7s,arm64 Build Active Architectures Only:NO Valid Architectures;armv6 armv7 armv7s arm64 i386 I didn't change anything except for downloading latest Xcode 5.1 with the iOS 7.1 SDK. This project worked fine with Xcode 5

iOS 7.1 Slide To Unlock Text Animation

隐身守侯 提交于 2019-12-20 11:49:39
问题 I'm not sure if this has been asked before, but I'm having a hard time finding it. Perhaps I'm not using the right search terms, so if an answer already exists, if someone could point me in the right direction, it'd be most appreciated! I just noticed that the glimmer animation on the "slide to unlock" text of the lockscreen has changed with the iOS 7.1 update. The spotlight now has an ovular / diamond shape that cascades across the letters without appearing on the view behind it. In the past

Open app with iBeacon

妖精的绣舞 提交于 2019-12-18 18:04:29
问题 I'm so excited about the new release of iOs 7.1 with big changes for iBeacon, which is stated in here: http://beekn.net/2014/03/apple-ios-7-1-launches-major-ibeacon-improvement/ and here: http://beekn.net/2014/03/prisoners-dilemma-ios-7-1-challenges-ibeacon-developers/ According to the topic, they said that In iOS 7.0 you could just close off the app and it would stop sending you messages. Now, the app doesn’t even need to be open or in the background to work. As far as I know, you couldn't