I want to get the user name. A simple text input dialog box. Any simple way to do this?
Just wanted to add an important piece of information that I believe was left out perhaps with the assumption that the ones seeking answers might already know. This problem happens a lot and I too found myself stuck when I tried to implement the viewAlert
method for the buttons of the UIAlertView
message. To do this you need to 1st add the delegate class which may look something like this:
@interface YourViewController : UIViewController
Also you can find a very helpful tutorial here!
Hope this helps.