ios6

Cannot generate Apple Passbook signature

烈酒焚心 提交于 2020-01-01 03:37:18
问题 I am writing a shell script to automatically generate an Apple Passbook signature file from manifest.json using p12 certificate. Here is what I do: openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -clcerts -nokeys -out certificate.pem openssl pkcs12 -passin pass:"mypass" -in "mycert.p12" -nocerts -out key.pem openssl smime -passin pass:"mypass" -binary -sign -signer certificate.pem -inkey key.pem -in manifest.json -out signature -outform DER The first two functions work fine. At least

How can I set the entire header view to UICollectionView?

女生的网名这么多〃 提交于 2020-01-01 03:02:27
问题 I want to set the header to collection view, just like UITableViewController's setTableHeader does. I found the way to set the each section's header on collection view, but I couldn't find how to set the header view of the entire header. Apple's reference of UICollectionViewLayout says "Supplementary views present data but are different than cells. Unlike cells, supplementary views cannot be selected by the user. Instead, you use supplementary views to implement things like header and footer

ARC App Crashes when accessing @property form ARC static lib

本小妞迷上赌 提交于 2020-01-01 02:44:12
问题 I have a ARC (automatic-reference-counting) app that builds a static library (also ARC). The app will launch fine but when the an action is performed that reads or writes to a @property in the static library the app will crash with this error: dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic Referenced from: /var/mobile/Applications/0E7ADBB4-FFE5-4CEB-B418-8A35A92E99D4/MyApp.app/MyApp Expected in: /usr/lib/libobjc.A.dylib dyld: Symbol not found: _objc

ios6 UIImageView - Loading -568h image

本小妞迷上赌 提交于 2020-01-01 02:44:08
问题 I've seen a couple posts about the UIImage automatically loading the filename-568.png image in the new iOS6, but I can't seem to recreate it in the UIImageView class. I'm using the Storyboard (not my app, just having to do some checks), and I've a simple layout with just the Image View scaled to fit, no code in the view controller, and I've sure the filename.png and filename-568h.png exist (as well as -568@2x.png just in case) but when I load it up in the iOS6 simulator. This has been for iOS

Handling gesture recognizers in iOS6

拜拜、爱过 提交于 2020-01-01 02:32:09
问题 Apparently iOS 6 tries to automatically handle the situation when you have a gesture recognizer and a UIButton in the same place, being activated for the same gesture. This new automatic handling solves the issue when you want to click the button instead of activating the gesture recognizer, but creates a new problem when you want the gesture recognizer to act. In iOS 5 you could implement: -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch

Using autolayout constraints programmatically

99封情书 提交于 2019-12-31 22:27:15
问题 I'm trying to use autolayout in my iOS app programmatically. I have a simple view controller with this init code UIView *innerView = [[UIView alloc] initWithFrame:self.view.bounds]; UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button1 setFrame:CGRectMake(50, 50, 150, 50)]; [button1 setTitle:@"button1" forState:UIControlStateNormal]; UIButton *button2 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button2 setFrame:CGRectMake(250, 50, 150, 50)]; [button2

Is there a way to view your app's .entitlements file from your app's .ipa archive?

心已入冬 提交于 2019-12-31 13:17:27
问题 I think there's an issue with my app's .entitlements file when a .ipa is created and so I want to check the Bundle ID of the entitlements file. There's a fairly complicated build script I am using to change some stuff in there before building so I want to see what the final product is. I know that there used to be an Entitlements.plist that I could get off of the ipa but it doesn't seem to be there any longer. Is there any way to access the .entitlements file now? 回答1: Sure, unzip the .ipa

Is there a way to view your app's .entitlements file from your app's .ipa archive?

…衆ロ難τιáo~ 提交于 2019-12-31 13:17:04
问题 I think there's an issue with my app's .entitlements file when a .ipa is created and so I want to check the Bundle ID of the entitlements file. There's a fairly complicated build script I am using to change some stuff in there before building so I want to see what the final product is. I know that there used to be an Entitlements.plist that I could get off of the ipa but it doesn't seem to be there any longer. Is there any way to access the .entitlements file now? 回答1: Sure, unzip the .ipa

UINavigationController State Restoration (without Storyboards)

让人想犯罪 __ 提交于 2019-12-31 12:23:06
问题 I've been toying around with state restoration. In the code below, the scroll position of the UITableViewController gets restored, however, if I were to tap through into the detail view (pushing an instance of MyViewController onto the navigation stack), when the app restarts, it always returns to the first view controller in the navigation stack (i.e. MyTableViewController). Would somebody be able to help me restore to the correct view controller (i.e. MyOtherViewController)? AppDelegate.m -

iOS Minimum OS Requirements different between Xcode project and iTunes Connect

烈酒焚心 提交于 2019-12-31 05:27:06
问题 I submitted an app to iTunes 7 days ago. Its status is "Waiting For Review" I set iOS Deployment Target as 6.0 in the project's settings: I did not do anything about minimum os version or deployment sdk in info.plist file: I archived and submitted my app to iTunes Connect. Today, when I check Binary Details of my app, I see this, "Minimum OS Requirements : 5.0" : Why is there a difference between my iOS Deployment Target and Minimum OS Requirements? Did I do something wrong? (e.g. info.plist