我通过继承 UIAlertView 创建了 Custome AlertView 类,并在 -(void)prepare 中添加了 UITableView
方法
任何人都可以建议我摆脱这个问题的方法......在此先感谢。
我这样做是为了跟踪方向变化
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
NSNotificationCenter* notifCenter = [NSNotificationCenter defaultCenter];
[notifCenter addObserver:self
selector:@selector(orientationChanged)
name:UIDeviceOrientationDidChangeNotification
object:nil];