来源:互联网 发布:晨风机器人授权源码 编辑:程序博客网 时间:2024/05/07 11:46

[self setNeedDisplay:YES] just send a message to main thread to refresh the view then return, but the main thread is blocked, so it can't work. 


[self displsyIfNeed] just force main thread to refresh the view and won't return till refreshed, so it will block your invoke thread if main thread is blocked. 


[self display] maybe the performance is different on 10.5 and 10.6.
原创粉丝点击