ios6

Mono and iOS 6 build error MT0000

半腔热情 提交于 2019-12-22 12:25:13
问题 I have a problem building my app on MonoTouch and iOS 6. My system configuration is: Mac OSX 10.7.4 (Lion) MonoTouch 5.2.13 MonoDevelop 3.0.3.5 XCode 4.5 with iOS 6 SDK beta 4. To link new iOS SDK I have selected on MonoDevelop preference SDK location (for me it's on desktop) and i have restarted it. Now, when I try to build my application, MonoDevelop gives me following error: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com (MT0000) Can anyone help me to understand

Mono and iOS 6 build error MT0000

徘徊边缘 提交于 2019-12-22 12:24:54
问题 I have a problem building my app on MonoTouch and iOS 6. My system configuration is: Mac OSX 10.7.4 (Lion) MonoTouch 5.2.13 MonoDevelop 3.0.3.5 XCode 4.5 with iOS 6 SDK beta 4. To link new iOS SDK I have selected on MonoDevelop preference SDK location (for me it's on desktop) and i have restarted it. Now, when I try to build my application, MonoDevelop gives me following error: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com (MT0000) Can anyone help me to understand

How to play sound in iOS?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 11:35:54
问题 I have found so many solutions here on stackoverflow, but for some reason all of them failed to produce any sound what so ever. Here is my current code: PRE: I've added AudioToolbox.framework and imported <AVFoundation/AVFoundation.h> in my .m file - (void)viewDidLoad { [super viewDidLoad]; NSURL* sndurl = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"aif"]; SystemSoundID snd; AudioServicesCreateSystemSoundID((__bridge CFURLRef)sndurl, &snd);

FBWebDialog rotation issue in iPad

蹲街弑〆低调 提交于 2019-12-22 11:11:07
问题 When I use following code to open FBWebDialog, Once FBWebDialog is open click in username textfield and keyboard is displayed now if you rotate iPad device, FBWebDialog is not auto-rotating to landscape orientation. [FBSession setActiveSession: [[FBSession alloc] initWithPermissions:permission] ]; [[FBSession activeSession] openWithBehavior:FBSessionLoginBehaviorForcingWebView completionHandler:^(FBSession *session, FBSessionState status, NSError *error) { switch (status) { case

CADisplayLink at iOS 6.0 not retaining target

空扰寡人 提交于 2019-12-22 10:29:06
问题 I have a such code: NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:[self methodSignatureForSelector:@selector(updateFrame)]]; [invocation setTarget:self]; [invocation setSelector:@selector(updateFrame)]; displayLink_ = [[CADisplayLink displayLinkWithTarget:invocation selector:@selector(invoke)] retain]; [displayLink_ setFrameInterval:1]; [displayLink_ addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; At iOS 6.0 (in 5.1 this code works ok) when this

Hide TabBar in iOS 6

 ̄綄美尐妖づ 提交于 2019-12-22 09:46:49
问题 I want to Hide my TabBar in iOS 6 , when i wrote the code which is given below it works in iOS 7 but it shows black line in iOS 6 self.tabBarController.tabBar.hidden = YES; Here is snapshot for iOS 6 : 回答1: Try with below code May be this will help you... - (void)hideTabBar:(UITabBarController *) tabbarcontroller { for(UIView *view in tabbarcontroller.view.subviews) { if([view isKindOfClass:[UITabBar class]]) { if([UIScreen mainScreen].bounds.size.height==568) { [view setFrame:CGRectMake(view

iOS 6: update view after push notification was received, but app was closed

ぐ巨炮叔叔 提交于 2019-12-22 09:37:19
问题 After the app receives a push notification, I'd like to change titles of some buttons on my main ViewController . To achieve this behavior, I overwrote in my app delegate the method application: didReceiveRemoteNotification: to re-instantiate the UINavigationController with the controller I'd like to update as its root view controller, setting the buttons' titles to whatever I want: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {

what is the use of @[ ] in objective c [duplicate]

一曲冷凌霜 提交于 2019-12-22 09:20:13
问题 This question already has answers here : What are the details of “Objective-C Literals” mentioned in the Xcode 4.4 release notes? (3 answers) Closed 6 years ago . I have seen NSArray *objectsToShare = @[objects]; when looking at some example code. What is the meaning of @[objects] here ? 回答1: NSArray *objectsToShare = @[objects]; is the same as NSArray *objectsToShare = [NSArray arrayWithObjects:objects count:count]; 回答2: It is also known as Literals in Objective-C Examples Immutable array

MkMapview setRegion under ios6 snaps to grid like ios5, no precise setRegion possible

一世执手 提交于 2019-12-22 09:14:11
问题 It is well known that using setRegion with MkMapKit under ios5 snaps to the next available Google zoom level, so a precise programatic setting of the map region was not possible (without special tricks, like using transformation matrix on mapView) But for some strange reasons using setRegion or setMapRect under iOS 6.1.3 iphone4 shows the same behavior as in iOS5, although this works on ipad ios6.1.3. iphone4 and simulator can only use regions double or half size from the prevoius one. So

Why is AutoLayout not taking care of my UICollectionView

牧云@^-^@ 提交于 2019-12-22 05:46:06
问题 I have built a very simple sample of an app (Source code on github) using a UICollectionView . Everything is working fine, as long as the app is in portrait mode. When it is changed to landscape mode however, the content cell is not resized appropriately, and thus, nothing is displayed. I thought that all the necessary AutoLayout constraints are in place. I am aware that I can implement collectionView:layout:sizeForItemAtIndexPath: , but my goal is to use AutoLayout as much as possible