Thursday, 17 January 2013

To pop up a alert box in iOS




UIAlertView *Alert1 = [[UIAlertView alloc]
                              initWithTitle:@"Complete all fields" message:@" All fields are mandatory" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
        
        // Display alert box
        [Alert1 show];