ios5

Hiding Ad Banner causes no further Ads to be requested/shown

社会主义新天地 提交于 2019-12-23 16:30:10
问题 I have a Test application setup with AdMob Mediation service being used, only on testing device at the moment. I have setup all the required methods per the documentation. I am having an issue where when the Fail to Receive Ad error occurs, no more ads are requested or shown? Header: #import <UIKit/UIKit.h> #import "GADBannerViewDelegate.h" @class GADBannerView, GADRequest; @interface AdTestViewController : UIViewController <GADBannerViewDelegate> { GADBannerView *bannerView_; } @property

How and where would you use instantiateViewControllerWithIdentifier

可紊 提交于 2019-12-23 13:01:19
问题 UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil]; MenuScreenViewController *controller = (MenuScreenViewController*)[mainStoryboard instantiateViewControllerWithIdentifier: @"<Controller ID>"]; Where exactly do i write this code if i have to make sure that the current view is instantiated with the identifier? Which means if i write any code on this class it has to appear when this viewcontroller loads? Also how would i use it? I dont want to

UIPageViewController and landscape

我们两清 提交于 2019-12-23 12:58:08
问题 I have been trying the following and nothing is working NSDictionary *pageViewOptions = [NSDictionary dictionaryWithObjectsAndKeys:UIPageViewControllerOptionSpineLocationKey, [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMid],nil]; NSLog(@"pageViewOptions :%@",pageViewOptions); self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal

use deprecated methods in iOS 5

左心房为你撑大大i 提交于 2019-12-23 12:53:56
问题 I recently upgraded my application from iOS3 to iOS5. And at compile time I have several warnings for using deprecated methods. Two questions: 1- Will I have problems when run the application in an iPhone with iOS 5? 2- If I did not update the methods, Will Apple accept the application when uploading it to the AppStore? 回答1: You will probably not have a problem on iOS 5 devices using methods that the compiler is telling you are deprecated. Of course, it would be a good thing to clear up this

Twitter integration issue with ACAccountStore (iOS 5)

99封情书 提交于 2019-12-23 12:34:01
问题 When I run below code with iOS 6.0, Its working ACAccountStore *account = [[ACAccountStore alloc] init]; ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; [account requestAccessToAccountsWithType:accountType options:nil completion:^(BOOL granted, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (granted) { //MY CODE } }); }]; and When I run this code with iOS 5.0 or 5.1, It crashes with following output, ***

What does this Xcode warning mean? “application executable is missing required architecture. …”

家住魔仙堡 提交于 2019-12-23 12:26:17
问题 When I build & run my app for iOS 5 in Xcode 4.2 for my iPod touch 4th generation (the first one with retina display), I get this warning: warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033) Although it warned about a missing architecture, the app runs on my iPod touch. What am I supposed to do to get rid of this warning? This is what I see in my build settings. There's no other

UITextView bad content offset after animating view

与世无争的帅哥 提交于 2019-12-23 11:58:23
问题 I have one UITextView which is on the bottom of view. When user tap in it, I need to animate view 150px up. I'm using: - (void)textViewDidBeginEditing:(UITextView *)textView{ and - (void)textViewDidEndEditing:(UITextView *)textView{ to make this. On iOS5, it works fine. But on iOS 4.3, when view is animated, content in this UITextView goes few pixels up. Screenshot: http://cl.ly/1q3e0W2G1M000u1U3w1f Someone had similar issues? Code: - (void)textViewDidBeginEditing:(UITextView *)textView{ if(

Xcode and iOS5.1 on iPhone won't work

天涯浪子 提交于 2019-12-23 11:24:09
问题 Did I miss something? I updated my iPhone to 5.1 and now Xcode won't install developer apps on it. Here's from the Organizer: OS Installed on User's iPhone 5.1 (9B179) Xcode Supported iOS Versions Latest 5.0 (9A334) 4.3 4.2 回答1: The current Xcode doesn't have the latest iOS 5.1 SDK (not to mention it looks like Apple took down the beta builds). You'll have to wait until Apple updates Xcode. 回答2: You have to download Xcode 4.3.1, but they try to force it through the app store and a lot of

How to share a UIManagedDocument using Storyboards with a Tab Bar Controller as initial controller?

只谈情不闲聊 提交于 2019-12-23 10:57:09
问题 My application uses locations data and presents it both as a table and in a map. It starts with a Tab Bar Controller, each of it's views is a Navigation Controller (one for the table view, one for the map, etc...). I want to share a UIManagedObject in order to use the same Managed Object Context so if the user updates at the table view, the data also gets updated for the map, so there is no need to update twice. Originally i thought of subclassing the Tab Bar Controller and adding a

Facebook iOS SDK Feed Dialog issue after authentication

こ雲淡風輕ζ 提交于 2019-12-23 10:54:13
问题 I seem to be having an issue with the feed dialog, which I haven't had before. I suspect it's because of iOS 5, but I'm not sure. If the user needs authentication, he's being redirected to the Facebook app, and then returns to my app. Afterwards, the user clicks a "Share" button, and the feed dialog appears . But suddenly, it disappears . If the user clicks "Share" again, the feed dialog is working just fine. It's just that first time, after returning to the app from authentication... The