ios4

How can I allow users to give me feedback and submit bug reports for my iOS app?

人盡茶涼 提交于 2019-12-24 05:35:10
问题 I submitted my first free iPhone app to the app store and users are complaining about bugs I've never seen, nor can I reproduce. How do developers allow their users to send feedback, as well as collect bug/crash reports for their iOS apps after they've been deployed to the app store? Thanks so much in advance for your help! 回答1: The best solution is to... First, write all your logs to a rotating file log. Then create a ViewController (maybe along with the settings screen) that has a text area

EXC_BAD_ACCESS when adding contacts from Addressbook?

让人想犯罪 __ 提交于 2019-12-24 05:11:11
问题 I have the following code : ABAddressBookRef ab; ab = ABAddressBookCreate(); int len = (int) ABAddressBookGetPersonCount(ab); int i; for(i = 1; i < (len + 1); i++) { ABRecordRef person = ABAddressBookGetPersonWithRecordID(ab,(ABRecordID) i); CFStringRef firstName, lastName; firstName = ABRecordCopyValue(person, kABPersonFirstNameProperty); lastName = ABRecordCopyValue(person, kABPersonLastNameProperty); static char* fallback = ""; int fbLength = strlen(fallback); int firstNameLength =

EXC_BAD_ACCESS when adding contacts from Addressbook?

人盡茶涼 提交于 2019-12-24 05:11:06
问题 I have the following code : ABAddressBookRef ab; ab = ABAddressBookCreate(); int len = (int) ABAddressBookGetPersonCount(ab); int i; for(i = 1; i < (len + 1); i++) { ABRecordRef person = ABAddressBookGetPersonWithRecordID(ab,(ABRecordID) i); CFStringRef firstName, lastName; firstName = ABRecordCopyValue(person, kABPersonFirstNameProperty); lastName = ABRecordCopyValue(person, kABPersonLastNameProperty); static char* fallback = ""; int fbLength = strlen(fallback); int firstNameLength =

Not Able to write Boolean in plist file

时光怂恿深爱的人放手 提交于 2019-12-24 04:59:26
问题 I am trying to write Boolean value to the plist file, But I really don't know where I'm doing wrong. I am not even getting any Exception/Error yet the values remain unchanged in the concerned file. Furthermore file path is correct too, the allocation of myDict shows that the values ve been read from the file. Following is the code I have written -(void)SetSettings:(BOOL)SoundOn: (BOOL)GlowOn { NSString *pathSettingFile = [[NSString alloc]initWithString:[[NSBundle mainBundle]pathForResource:@

What is the equivalent of Project->Rename in Xcode 4

与世无争的帅哥 提交于 2019-12-24 04:52:05
问题 Xcode 3 had the easy to use Project-> Rename in case I wanted to change the name of my app being developed. I don't see the option in Xcode 4 anymore. Whats the best way to rename your app without any crashes? Thanks.. 回答1: ⌘+1, click the blue node with the project name, wait a second, click again (the name becomes editable). That's it. 回答2: This is answered here as well Renaming projects in Xcode 4 来源: https://stackoverflow.com/questions/6077876/what-is-the-equivalent-of-project-rename-in

XMPP - user search in iphone sdk ? use of XEP-0055 in iphone sdk?

ぐ巨炮叔叔 提交于 2019-12-24 04:46:14
问题 i am sending this IQ to openfire server < iq type="set" from="admin@localhost.localdomain" to="localhost.localdomain" id="search2" xml:lang="en" > < query xmlns="jabber:iq:search" > < first > admin < /first > < /query > < /iq > but getting following response from server, < iq type="error" id="search2" from="localhost.localdomain" to="admin@localhost.localdomain/b91c09e5"><query xmlns="jabber:iq:search" > < first > admin < /first > < /query > < error code="501" type="cancel" > < feature-not

Program received signal: “0”. No prior sign of trouble

放肆的年华 提交于 2019-12-24 04:29:07
问题 Running a long-running sound processing app on tethered (to Xcode 3) iPod Touch. Twice now, after 1 hour 40 minutes the first time and 2 hours 20 minutes the second, the app has ended with signal 0. There are multiple discussions of signal 0 here and on other forums, and they all seem to blame running out of memory. But I dump the memory used at intervals, and, on the last test, it grew only about 3.3mb from early in the run until just before the end. And I have a hook in my app delegate to

Xcode - Adding network error alert code into my app?

淺唱寂寞╮ 提交于 2019-12-24 03:39:22
问题 Hi I want to add network error code into my iPhone app, heres what I have got up to now: - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"The page couldn't load, please check your internet connection and reopen the app." delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; [alert show]; [alert release]; } I have linked the webview in question in interface builder with delegate.

Google Talk API for iPhone

烂漫一生 提交于 2019-12-24 03:12:24
问题 Does anyone know how to connect to Google Talk using GData API. IS there a better api for iphone development for connection to Google Talk? I have been looking thru the examples I downloaded for the API but I don't see any support. This is what I have been looking at. 回答1: Google Talk uses XMPP, and it has no GData API. I suggest you look at: http://code.google.com/apis/talk/talk_developers_home.html 来源: https://stackoverflow.com/questions/4550784/google-talk-api-for-iphone

Comparing a string from the web

一笑奈何 提交于 2019-12-24 02:25:29
问题 hey all, i'm trying to read a file on the web that says "this is a test" and i wanna compare it... so here's what i got: NSError *error; NSURL *theURL = [NSURL URLWithString:@"http://mysite.com/test.asp"]; NSString *test = [NSString stringWithContentsOfURL:theURL encoding:NSASCIIStringEncoding error:&error]; NSLog(@"%@",test); //prints the results.. .does work if(test == "this is a test"){ NSLog(@"File read"); } else { NSLog(@"Bad file"); } What am i doing wrong here? I always get "Bad file"