Quantcast
Channel: C++博客-所有随笔
Viewing all articles
Browse latest Browse all 7880

原:ioscustom -2012年12月27日

$
0
0
创建:2012年12月27日

用模拟器自动模拟内存不足。
如果需要根据不同方向动态修改,则需要注册旋转消息
UIApplicationWillChangeStatusBarOrientationNotification 
UIApplicationDidChangeStatusBarOrientationNotification
- (void)handleUIApplicationDidChangeStatusBarOrientationNotification:(NSNotification*)notification
{
    if (self.isNeedRecordDidChangeStatusBarOrientation)
    {
        self.isDidChangeStatusBarOrientation = YES;
    }
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    if (self.isNeedRecordDidChangeStatusBarOrientation && self.isDidChangeStatusBarOrientation) 
    {
        [self updateExtraView];
    }
    self.isNeedRecordDidChangeStatusBarOrientation = NO;
    self.isDidChangeStatusBarOrientation = NO;
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    self.isNeedRecordDidChangeStatusBarOrientation = YES;
}
loading页面加入
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
不同平台测试。
不同版本测试。
测试断网情况。
+++++

佳为好友 2012-12-27 13:30 发表评论

Viewing all articles
Browse latest Browse all 7880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>