ios6

iOS - using sqlite database update data not working

喜夏-厌秋 提交于 2019-12-11 04:05:58
问题 I would like to update some data in Xcode sqlite db. The db is successfully connected, but seems like there's something wrong in the sql statement, it keeps returning "Failed to add contact", thanks for helping. - (void) saveData:(id)sender { NSLog(@"The code runs through here!"); sqlite3_stmt *statement; NSString *documents = [self applicationDocumentsDirectory]; NSString *dbPath = [documents stringByAppendingPathComponent:@"monitorDB.sqlite"]; const char *dbpath = [dbPath

Landscape iAd is showing the portrait graphic in iOS6?

牧云@^-^@ 提交于 2019-12-11 03:48:50
问题 My app runs in the Portrait orientation, but the content inside rotates with the accelerometer. I show an iAd on the bottom of the screen. The iAd changed position as you rotate, but the actual interface does not rotate (shouldAutorotate returns NO, all the rotates are handled in OpenGL). So the iAd is positioned, and then a transform is set to rotate it so it's the correct way up for the user. When the app is in Portrait, it's the portrait ad. When in Landscape, it's the landscape. This has

playing video in ios 6

馋奶兔 提交于 2019-12-11 03:46:50
问题 I wanted to play a video in ios 6. I am using Xcode 4.5. I write code below but getting error Test Demo[736:14003] [MPAVController] Autoplay: Disabling autoplay for pause Test Demo[736:14003] [MPAVController] Autoplay: Disabling autoplay Test Demo[736:14003] [MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 1, on player: 0) and my code NSString *videoPath = [[NSBundle mainBundle] pathForResource:@"TestVideo" ofType:@"m4v"]; NSURL *streamURL = [NSURL fileURLWithPath

FTP Downloading very slow in iPhone

橙三吉。 提交于 2019-12-11 03:44:38
问题 I am having an app in which I am using FTPHelper.h and FTPHelper.m files. I am downloading the images from the dedicated server using FTP. It works fine in my project but the images downloaded from server are very slow. I have 50 images of 4.5mb to download and it takes almost 4 to 5 minutes to download. I have imported two files FTPHelper.h and FTPHelper.m in my project and below is the code I am using. -(void)getdata { [FTPHelper sharedInstance].delegate = self; [FTPHelper sharedInstance]

iOS Can i play sound using local notification when app is in foreground [closed]

醉酒当歌 提交于 2019-12-11 03:43:51
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Local Notification sound is not playing when app is in foreground : I Used following code UILocalNotification *notif = [[cls alloc] init]; notif.fireDate = [datePicker date]; notif.timeZone = [NSTimeZone

iOS 6 - Rate App links busted?

早过忘川 提交于 2019-12-11 03:34:44
问题 i've put the iOS 6 GM on my iPhone 4 (not 4S), and the 'rate it' buttons in my own app and others no longer do their thing. instead it opens the app store w/ "cannot connect to itunes store". regular app-links from safari work fine. i'm using links of this form: itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<APP_ID> for example, from safari on iOS 5.1, the link on this page works fine: http://elenzil.com/scratch/appstore but the same

'CoreVideo/CoreVideo.h' file not found

谁说我不能喝 提交于 2019-12-11 03:30:10
问题 When I run a iOS App on my device , This error will appear 'CoreVideo/CoreVideo.h' file not found not matter what project even though create a new project , once run the app on my device this error will appear but the Simulator will be OK~ and I can't find some frameworks in Target--Build Phase--Link Binary With Librares--add like AVFoundation.framework AudioToolBox.framework Should i reinstall the xcode on my mac~??? 回答1: Make certain you've added the CoreVideo framework to your project.

iOS - Core Plot Linker error after upgrading to Xcode 4.5 [duplicate]

♀尐吖头ヾ 提交于 2019-12-11 03:20:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: iOS - Linker error after upgrading to Xcode 4.5, possibly Core Plot related I have the problem described in this post: iOS - Linker error after upgrading to Xcode 4.5, possibly Core Plot related However being pretty new to this i still do not understand how to solve this problem, recompile the library, and have to reach out for some help. I have cleaned etc. 回答1: Two issues could be at play here (iOS Deployment

Retrieve Facebook Account Information in ios 6

倾然丶 夕夏残阳落幕 提交于 2019-12-11 03:12:30
问题 i want retrieve the information of a facebook account on the ios 6 integrated Facebook, now i do it in this way and i can retrieve only the username: ACAccountType *accountTypeF = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; [accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) { if(granted) { NSArray *accountsArray = [accountStore accountsWithAccountType:accountTypeF]; ACAccount *facebookAccount

cocos2D iOS 6 retina display

怎甘沉沦 提交于 2019-12-11 03:08:43
问题 I'm using cocos2D and TexturePacker. My game is working correctly with iOS < 6. Since I upgraded to iOS 6, my images are displayed 4 times bigger in retina. Looks like it is displaying retina images without compressing it by 4. 来源: https://stackoverflow.com/questions/12567239/cocos2d-ios-6-retina-display