测试代码下载
http://pan.baidu.com/s/1bn7rlcb?qq-pf-to=pcqq.c2c我在ViewControl中添加了一个MyView
但是当屏幕方向改变时,MyView的LayerSubViews事件并没有执行
现在的办法就是只能在VicwControl中
的事件
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
找到这个View来进行强制刷新
但这样感觉不科学,有没有什么办法把这个监听屏幕方向改变的事件放到MyView里面呢?
[self.view viewWithTag:10001] setNeedsLayout];万分感谢