ios6

iOS 6.0: UISplitViewController Popover broken or design changed by Apple?

萝らか妹 提交于 2019-12-05 13:24:27
I have created a project with master detail template in Xcode 4.5 and deployment target 5.1. Could someone please help me with following UISplitViewController issues please. In portrait mode, master view fade in from the left. It doesn't appear as Popover view as it used in iOS 5.0 in portrait mode. Please see attached images. How to get the master view as popover? Is there anyway I can hide master view in Landscap mode? Thanks. This has been the default action since 5.1. From the iOS 6 release notes: In iOS 5.1, the UISplitViewController class adopts the sliding presentation style when

Open Apple Maps and Start Route from Current Location to Home Immediately in iOS 6.0

三世轮回 提交于 2019-12-05 12:32:50
I'm wanting to create a link in my application that essentially will be labelled "Take Me Home". When pressed, I want it to open Apple Maps, route from current location to home, and start turn by turn navigation. I have found this scheme, but it does not do everything I was hoping for: http://maps.apple.com/maps?saddr=%f,%f&daddr=%f,%f Here is a working code for opening Maps with routes (including the option to show Google maps for iOS5) -(IBAction)showMapApp:(id)sender { CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(self.location.latitude,self.location.longitude); //create

Why am I getting a “Title set but using a system Identifier” warning?

青春壹個敷衍的年華 提交于 2019-12-05 12:32:25
问题 I get the following warning: MainStoryboard.storyboard: Title set but using a system Identifier (These attributes are mutually exclusive; the Title will be ignored) I have a manually placed toolbar on my storyboard with a Title and a Cancel button. What's wrong about that? 回答1: Are you adding a title to the Cancel button (e.g. “Cancel”)? You don’t need to do this as setting the bar button item as a system bar button item (like Cancel) will automatically set the title—and it’ll be localized

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

被刻印的时光 ゝ 提交于 2019-12-05 12:27:22
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 { UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self

iOS 6 - How can I get the “release to refresh” animation thing? like in mail?

霸气de小男生 提交于 2019-12-05 12:08:15
In mail app, we can now drag the view down and release to refresh , like shown in the picture below. Is this a standard thing I can get from SDK? Thanks Use the new iOS6 UIRefreshControl class to do that. yourUITableViewController.refreshControl = [[[UIRefreshControl alloc] init] autorelease]; [yourUITableViewController.refreshControl addTarget:yourTableView action:@selector(reloadData) forControlEvent:UIControlEventValueChanged]; If u need customized refresh control, ODRefreshControl thanks, Naveen Shan 来源: https://stackoverflow.com/questions/12515236/ios-6-how-can-i-get-the-release-to

Set status bar orientation in iOS 6.0 [duplicate]

你。 提交于 2019-12-05 12:04:44
Possible Duplicate: setStatusBarOrientation:animated: not working in iOS 6 In iOS 6.0, as AppDelegate by default extends UIRepsonder and not UIApplication there is no global sharedApplication object. Am I missing anything? I am trying to set status bar orientation using following and it doesn't seem to work anymore. I tested it on iOS 6.0 simulator. I know you can set status bar tint color from the plist settings but can anyone please tell me how to set status bar orientation programmatically in iOS 6.0? [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationPortrait

Independent scrolling for each section of a UICollectionView?

会有一股神秘感。 提交于 2019-12-05 11:46:12
问题 Is it possible to use UICollectionView to build a layout where each section can be independently scrolled? For example, imagine 20 rows of images, where each row could be scrolled independently horizontally to reveal more images offscreen (without scrolling other rows in the process); and the entire view could be scrolled vertically to reveal more rows. I believe something like this could be implemented with several instances of UICollectionView inside a UIScrollView; however, it'd be great

MPMoviePlayerController Overlay iOS 6

╄→гoц情女王★ 提交于 2019-12-05 11:19:23
Having an issue with MPMoviePLayerController with an overlay in iOS6, prior to iOS6 things were working fine. It seems I can play a movie in full screen, before I had this code: @interface MovieOverlayViewController : UIViewController { UIImageView *skiparrow; } @end @implementation MovieOverlayViewController -(void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; touchtoskip.frame = CGRectMake( xAdjust, yAdjust, touchtoskip.image.size.width / scale, touchtoskip.image.size.height / scale); [self.view addSubview:touchtoskip]; } Then: overlay = [[MovieOverlayViewController alloc

Sorting Number using NSSortDescriptor

◇◆丶佛笑我妖孽 提交于 2019-12-05 10:58:41
I got stuck in another problem again but after a long time. This time I have database (Core Data), having an attribute of numbers which contains integer numbers like 213879,123,4,345,56567 and so. I need to fetch data in ascending number order similar to like alphabetically order. I am doing this in way given below, fetchRequest.sortDescriptors=[NSArray arrayWithObject: [NSSortDescriptor sortDescriptorWithKey:@"numbers" ascending:YES selector:@selector(compare:)]]; but unfortunately it compares only the 1st digit of every number, mean if there are 2 numbers like 123 and 321 , it will compare 1

ERROR data argument not used by format string on mySLComposerSheet

回眸只為那壹抹淺笑 提交于 2019-12-05 10:52:56
I'm a bit confused at why I'm getting the ERROR 'data argument not used by format string' Has anybody else got this or fixed this in Xcode 4.5 for iOS6? - (IBAction)facebookPost:(id)sender { if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { mySLComposerSheet = [[SLComposeViewController alloc] init]; mySLComposerSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [mySLComposerSheet setInitialText:[NSString stringWithFormat:@"I'm listening to Boilerroom Recordings via the Boilerroom iPhone Application",mySLComposerSheet