ios6

iOS 6 landscape and portrait orientation

爷,独闯天下 提交于 2019-12-19 03:42:18
问题 I have a table with a big list of stuff that comes from a plist file and clicking each of them takes you to a new view, a xib. I have 2 views inside that .xib, one for portrait and one for landscape In my h file I have this: IBOutlet UIView *portraitView; IBOutlet UIView *landscapeView; @property (nonatomic, retain) IBOutlet UIView *portraitView; @property (nonatomic, retain) IBOutlet UIView *landscapeView; In my m file this: [super viewDidLoad]; // Do any additional setup after loading the

Writing iOS7 code that compiles against iOS 6 Base SDK

孤街浪徒 提交于 2019-12-19 02:55:33
问题 We have an iOS app on-sale now, and we're developing the iOS 7 version on XCode 5 DP using the same code base. We really need to release an update right now for existing iOS 5/6 customers but, of course, when we re-load the project into XCode 4, it complains about non-existing properties since the Base SDK then becomes iOS6, not 7: // Only run this bit on iOS 7 if ([self respondsToSelector:@selector(setFooForExtendedLayout:)]) { self.fooForExtendedLayout = UIFooEdgeLeft | UIFooEdgeRight; }

Safari Remote Debugging on Windows

倖福魔咒の 提交于 2019-12-18 19:03:22
问题 With the release of iOS 6, Apple implemented a feature called remote debugging A client is having problems with my webapp since installing the new iOS 6 and I can't figure out the issue. It doesn't seem to be an issue with caching of AJAX requests, because the errors occur randomly and the problem is not (only) that results are still the same. So it has to be a problem with parallel AJAX-Calls To identify the problem and efficiently fix it (instead stumbling in the dark) I need a debugger. I

How to get YouTube autoplay to work in UIWebView?

China☆狼群 提交于 2019-12-18 18:36:12
问题 Platform: iOS 6.1. Xcode 4.6. I am using YouTube Javascript API and a UIWebView. I am able to manually tap on the video thumbnail to begin playback just fine. But, autoplay is not working. I am setting mediaPlaybackRequiresUserAction = NO for the web view as many have suggested. No luck. Here is the code: @interface VideoPlayerController : UIViewController <UIWebViewDelegate> @property(strong, nonatomic) IBOutlet UIWebView* webView; @end - (void) viewDidLoad { [super viewDidLoad]; self

Post to Friends wall on Facebook failed with Social Framework in iOS 6

泄露秘密 提交于 2019-12-18 17:13:12
问题 I am trying to POST a invitation to iOS app on my facebook friends wall using Social framework in iOS 6+. But it gives me following error error = { code = 200; message = "(#200) Feed story publishing to other users is disabled for this application"; type = OAuthException; }; I know this is due to Facebook disable this functionality as mentioned on Facebook blog & this stackoverflow question On stackoverlow's page , it is written that use feed dialog. But I can't see any option to use feed

Can I use UIActivityViewController to share on Facebook ?

大兔子大兔子 提交于 2019-12-18 16:54:59
问题 I am trying to use UIActivityViewController to share on facebook. When I am using the UIImage* image = [UIImage imageNamed:@"image1.png"]; NSArray* dataToShare = @[@"test",image]; UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:dataToShare applicationActivities:nil]; activityViewController.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll]; I

iOS - How can I decode the symbolicated crash report from iTunes Connect?

半腔热情 提交于 2019-12-18 15:52:57
问题 I have a new app, which was rejected from the app store with this message: We found that your app crashed on an iPhone 5 and iPad 3rd Gen running iOS 6.1, which is not in compliance with the App Store Review Guidelines. Your app crashed when we: 1) Launched the app This occurred when your app was used: - On Wi-Fi - On cellular network But my build target settings for the app were Devices: iPhone Deployment target: 6.0 And my plist settings are: Target device family: iPhone iOS deployment

iPhone SDK 6 Launching maps with voice navigation directions

强颜欢笑 提交于 2019-12-18 13:38:54
问题 I am trying to launch the maps app from my iPhone SDK app. Right now I can launch the maps app with directions but it goes to an overview of the directions and doesn't use Siri and the voice navigation to give turn by turn directions. currently I have a button that launches this code... NSString *address = viewedObject.addressFull; NSString *url = [NSString stringWithFormat: @"http://maps.apple.com/maps?saddr=%f,%f&daddr=%@", here.latitude, here.longitude, [address

Possible way to detect sim card detection in ios?

前提是你 提交于 2019-12-18 13:23:03
问题 I have a iphone app that has the capability to send messages. I want to alert user when sim card is not available in iphone. So i tried below three function to check sim card availabilty Class messageClass = (NSClassFromString(@"MFMessageComposeViewController")); if([messageClass canSendText]){ // Sim available NSLog(@"Sim available"); } else{ //Sim not available NSLog(@"Sim not available"); } if([MFMessageComposeViewController canSendText]){ // Sim available NSLog(@"Sim available"); } else{

iOS 6 - UIWebView loadHTMLString not working properly

≯℡__Kan透↙ 提交于 2019-12-18 13:02:33
问题 If anyone experienced the issue below, please let me know if you were able to find a fix. I've spent a couple of days trying to come up with a solution, but no luck so far. I'm using XCode 4.5 with iOS 6 SDK Golden Master. Basically, my application reads and HTML file and hands its contents to a web view for rendering. NSString *path = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"html"]; NSString *html = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding