UIAlertView and Core Data?

Yes, you would put the code to grab the value from the text field in the alertView:willDismissWithButtonIndex: method. Assuming you've created a model class for that entity (which I assume you have, as I see a class called Track in your code), you can set the value of an attribute by using dot syntax: Track. SomeAttribute = newValue Or without dot syntax, it would be Track setSomeAttribute:newValue Also, note that UIAlertView s addTextFieldWithValue:label: is an undocumented method, which isn't a problem if this is an app you're planning to create just for yourself, but using it in an app submitted to the App Store will likely get it rejected.

Yes, you would put the code to grab the value from the text field in the alertView:willDismissWithButtonIndex: method. Assuming you've created a model class for that entity (which I assume you have, as I see a class called Track in your code), you can set the value of an attribute by using dot syntax: Track. SomeAttribute = newValue Or without dot syntax, it would be Track setSomeAttribute:newValue.

Also, note that UIAlertView's addTextFieldWithValue:label: is an undocumented method, which isn't a problem if this is an app you're planning to create just for yourself, but using it in an app submitted to the App Store will likely get it rejected.

Yeah, the app isn't for app store... :) mmm, i've got another problem: Track.track. Name = newname; error: request for member 'name' in something not a structure or union... warn: local declaration of 'newname' hides istance variable ah, i've added this too alert textField becomeFirstResponder; any ideas? – iX315 Jun 28 '10 at 22:04 no worry!

Resolved! Thanks.... :D – iX315 Jun 28 '10 at 22:51.

I tried to create a simple tableView for listing a few names and a number... all with core data. Need I put the code in this method?! And how I can set a new value on a core data attribute?

ANY help is appreciated... Thanks in advance!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions