UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@\"Enter Student Name\" message:nil delegate:self cancelButtonTitle:@\"Cancel\" otherButtonTitles
In stead of messing with UIAlertView, you should use a custom presented (or a modal) view. Apple also doesn't like you to mess up with UIAlertView.
UIAlertView
So, my (and also the best) suggestion for you is to go with a custom presented (or a modal) view which is also a correct approach in your case also.