SetNeedsDisplay but drawRect not called
2012-02-24 05:38
302 查看
http://www.iphonedevsdk.com/forum/iphone-sdk-development/12211-drawrect-not-called-after-setneedsdisplay.html
I have the same problem and fixed it now. The reason is that in the function awakeFromNib, I create a new OpenGLView object, and so the IB-wired view is no longer the view responsed to the controller.
I have the same problem and fixed it now. The reason is that in the function awakeFromNib, I create a new OpenGLView object, and so the IB-wired view is no longer the view responsed to the controller.
相关文章推荐
- setNeedsDisplay和setNeedsLayout 区别 layoutSubviews 和drawRect被调用时机
- 涂鸦-每次调setNeedsDisplay以后就会重新调用一次drawRect方法,每次调drawRect方法就会把之前画好的东西删掉
- setNeedsDisplay,setNeedsLayout,layoutSubviews,drawRect的调用关系
- UIView之setNeedsDisplay与drawRect 和 setNeedsLayout与layoutSubViews
- UIView的drawRect: 和 - (void)setNeedsDisplay 的一些理解
- drawRect: 和 - (void)setNeedsDisplay 的一些理解
- [iOS] 在循环中使用setNeedsDisplay来调用drawRect的方法
- layoutSubviews、setNeedsLayout、setNeedsDisplay、drawRect区别及调用的时机
- UIView的drawRect: 和 - (void)setNeedsDisplay 的一些理解
- [self setNeedsDisplay]&&drawRect几个小点
- drawRect: 和 - (void)setNeedsDisplay 的一些理解
- drawRect: 和 - (void)setNeedsDisplay 的一些理解
- 关于setNeedsDisplay、setNeedsLayout方法,UIView的layoutSubviews和drawRect方法何时调用
- layoutSubviews和setNeedsLayOut,drawRect和setNeedsDisplay
- iOS UIView的drawRect方法 - setNeedsDisplay和setNeedsDisplayInRect.
- drawRect: 和 - (void)setNeedsDisplay 的一些理解
- iOS setNeedsDisplay不能正常调起drawRect方法的某个原因
- IOS_Quartz2D_水印缩略图_PDF_setNeedsDisplay方法内部自动调用drawRect
- loaded the "***" nib but the view outlet was not set
- DISPLAY environment variable not set!