ios6

When should I renew an ACAccount? Or, how to check if the credential is expired. (Facebook)

孤街浪徒 提交于 2019-12-04 17:09:26
Recently I was assigned to survey how to use iOS framework ACAccount and Social to implement facebook post function. It is quite simple to gain access of the account configured in setting. if(!_accountStore) _accountStore = [[ACAccountStore alloc] init]; ACAccountType *facebookTypeAccount = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; // Check if there is any faceboook account NSArray *accounts = [_accountStore accountsWithAccountType:facebookTypeAccount]; if (![accounts count]) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"alert" message:@

How to set reminder in iOS for a particular time and show it after 2 min interval again and again(five times) after that time

点点圈 提交于 2019-12-04 17:06:58
I have value like createdate = "2013-09-24 04:29:30"; I have to set a reminder on this time .I am using local notification to set the reminder but i am not sure how to remove it after it occurs and also how to invoke it again after two minutes of the reminder time. Thanks in advance. EKEventStore *eventStore = [[EKEventStore alloc]init]; EKEvent *event = [EKEvent eventWithEventStore:eventStore]; [event setCalendar:[eventStore defaultCalendarForNewEvents]]; //no need to fill all fill which one u want to set event.title =@"eventTitle"; event.location = @"eventLocation"; event.notes = @"eventNote

iOS SDK: MapKit MKPolyLine not showing

╄→гoц情女王★ 提交于 2019-12-04 16:47:44
I'm trying to display a polyline on my map, but the line doesn't show up. I tried a lot of things, but noting seems to work. I checked the Core Data functions, and it is returning data, so that is not the problem. It must me somewhere in the mappoint creation or the dwawing on the map (I guess). I'm sure it must be a little mistake somewhere, but I can't find it. My code: - (void)viewDidLoad { [super viewDidLoad]; AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; mapView.delegate = self; } - (void)createLine { AppDelegate *appDelegate = [[UIApplication sharedApplication]

App deployment not working correctly for iOS6 on windows

只愿长相守 提交于 2019-12-04 16:43:30
When I deploy app for first time everything works correctly , but after changing code and trying to deploy same app again with "run again" button, app starts without loading forge object so i can not use forge API . After little bit of testing I find out that forge will load only if I delete app from phone before deployment "run again" button. so basicly. I am using latest version v1.4.15 . So if you can fix it will save some time during development . One more , I can install and run app on iOS from windows , but I can not debug app from windows i am getting Launching - /private/var/mobile

Javascript history function not working for web page served from homescreen on iOS 6

守給你的承諾、 提交于 2019-12-04 16:35:59
问题 I've seen some other posts about iOS 6's new behaviors with Web sites saved to / launched from the home screen. On iOS 5 (and earlier), we were able to use the Javascript History function for our in-app back button. In iOS 6, however, it works if you've only been to one page in the site. But if you have more than one page that you've visited, it throws a page-not-found error. It works fine in Safari (not from the homescreen), and it works if I remove the <meta name="apple-mobile-web-app

Custom map path line

若如初见. 提交于 2019-12-04 16:03:12
I'm having trouble with drawing a line on the map with a stroke. (inside color and outside color) I beleive i'm on the right path and have subclassed mkOverlayView to override the drawing (needs to fill with the road size) so inside drawMapRect... CGFloat lineWidth = MKRoadWidthAtZoomScale(zoomScale); MKMapRect clipRect = MKMapRectInset(mapRect, -lineWidth, -lineWidth); ... CGContextAddPath(context, path); CGContextSetStrokeColorWithColor(context, line.color.CGColor); CGContextSetLineJoin(context, kCGLineJoinRound); CGContextSetLineCap(context, kCGLineCapRound); CGContextSetLineWidth(context,

UIAlertView Causes Crash in iOS SDK 6.0

笑着哭i 提交于 2019-12-04 16:03:10
问题 I recently submitted an app to App Store that has not been accepted yet. Meanwhile, I downloaded Xcode 4.5 and tested my app in iPhone 6.0 Simulator. However, when I intend to show an UIAlertView , the app crashes on [myAlertView show] line with EXC_BAD_ACCESS error. It works fine with iPhone 5.1 Simulator. Here's my code: UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Warning" message:@"Are you sure?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];

Routing Data for MKMapKit in iOS6

半腔热情 提交于 2019-12-04 15:21:46
I have done routing in iOS apps before, but with iOS6 we are now displaying Apple maps - which causes a problem because we are using Google routing data and if we use Google data, we are supposed to be displaying it on a Google map. I have been searching but as far as I can tell, Apple does not provide any routing data. The closest thing to an answer so far seems to be when Apple says Apps that consume direction information do so by sending an appropriate request to the Maps app, which then handles the task of displaying that information to the user. - which, to me, means that the Maps app

Backspace functionality in iOS 6 & iOS 5 for UITextfield with 'secure' attribute

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 15:18:55
I have a UITextfield for entering password with SECURE attribute enabled. When the user taps outside the UITextfield after inputting a certain number of characters, and then taps back again to the UITextfield for editing, the following behavior is taking place: iOS 5.1 -When I try to delete a character(using backspace from keyboard) from the UITextfield , the last character is deleted. iOS 6.0 -When I try to delete a character from the UITextfield , all typed characters are getting deleted. Am I doing something wrong, or is this a bug in iOS 6? This is the intended behaviour under iOS6 and you

Best approach to keep both iOS6 and iOS7 support? [closed]

*爱你&永不变心* 提交于 2019-12-04 15:02:12
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 6 years ago . As you know, soon we will have the new iOS7 release, and then we are supposed to adapt our App's to the new flat style. My question is: does anybody know which is the best practice to have a temporary coexistence of the iOS 6 (skeuomorphic) and the iOS 7 (flat) design? The best for me would be the possibility of 2 different Storyboards per device-screen-size, and