一、旋转处理
第一步:注册通知
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(changeFrames:)
name:UIDeviceOrientationDidChangeNotification
object:nil];
第二步:处理接收事件
-(void)changeFrames:(NSNotification *)notification{
NSLog(@change notification: %@, notification.userIn