1.导致状态栏错位
//-(NSUInteger)supportedInterfaceOrientations{
// return NO;//这里返回哪个值,就看你想支持那几个方向了。这里必须和后面plist文件里面的一致(我感觉是这样的)。
//}
//
//- (BOOL)shouldAutorotate {
// return NO;//支持转屏
//}
//- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
//{
// // Return YES for supported orientations
// return NO;
}
2.成员变量实例化后要autorelease或者在dealloc方法中release,切记:在代码中已经release的则不用在dealloc中再release
3.button如果没有alloc那么不用release即便是成员变量
//-(NSUInteger)supportedInterfaceOrientations{
// return NO;//这里返回哪个值,就看你想支持那几个方向了。这里必须和后面plist文件里面的一致(我感觉是这样的)。
//}
//
//- (BOOL)shouldAutorotate {
// return NO;//支持转屏
//}
//- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
//{
// // Return YES for supported orientations
// return NO;
}
2.成员变量实例化后要autorelease或者在dealloc方法中release,切记:在代码中已经release的则不用在dealloc中再release
3.button如果没有alloc那么不用release即便是成员变量