When you set the delegate property of an object, your class must adopt the appropriate protocol. In your case, you are using a UIAlertView so you need to add the UIAlertViewDelegate protocol to your header file.
Up vote 1 down vote favorite 1 share g+ share fb share tw.
This is how I create the alert: UIAlertView* dialog = UIAlertView alloc init; dialog. Delegate = self; //some options aField = UITextField allocinitWithFrame:CGRectMake(20.0,45.0,245.0,25.0); aField setBackgroundColor:UIColor whiteColor; dialog addSubview:appkeyField; dialog show; aField release; However - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ NSLog(@"test here"); } does nothing. There is nothing in the log!
What could be wrong? Objective-c ios delegates uialertview link|improve this question edited May 13 '11 at 16:01Evan Mulawski13k2928 asked May 10 '11 at 17:54ArtWorkAD4,73532479 99% accept rate.
– Evan Mulawski May 10 '11 at 18:06 thanks that was the prob, make this an answer! – ArtWorkAD May 10 '11 at 18:15.
When you set the delegate property of an object, your class must adopt the appropriate protocol. In your case, you are using a UIAlertView, so you need to add the UIAlertViewDelegate protocol to your header file: @interface MyClass : UIViewController To add multiple protocols, use: @interface MyClass : UIViewController.
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.