rexis.cn

一张相片 一段故事

Archive for 十一月, 2009

土比的聚餐会

without comments

昨天公司聚餐,一伙人把一小店挤的满满当当,一坐下我就觉得特悲惨,但是更悲惨的我认为是旁边的一对日本老夫妇。。莫名其妙出现一大帮人,还那么大声喧哗。
中间过程略过,到最后高潮。。个个都已经喝的快吐的和已经吐过的硬要在那划出两帮派分高低。白酒跟白开水一样灌,虽然满high,但是结局很惨烈。电车上出租车上吐得到处都是,更惨烈的是我这个没吐的得在旁边接受路人鄙视的眼神。
这一回,也算在小日本地盘上丢了一回脸。

Written by 北

十一月 29th, 2009 at 2:28 下午

Posted in life

2009.11.18

without comments

记忆力越来越差 很多时候都会被突如其来的问题 把脑子塞住
会不会某一天突然变的今天不记得明天的事… 就跟某个日剧中的人物一样 需要不停的记录下见过的人 做过的事

Written by 北

十一月 18th, 2009 at 7:23 上午

Posted in life

在UIViewController中用多线程更新UI的异常

without comments

在UIViewController中用多线程时,如果该线程方法中有更新UI操作的话,会抛出如下错误:

Tried to obtain the web lock from a thread other than the main thread or the web thread.
This may be a result of calling to UIKit from a secondary thread. Crashing now…

貌似是因为UIKit是非线程安全的,所以更新UI只能在主线程中操作,解决的办法:

- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait

用该方法指定要执行的UI更新Method在主线程中执行.

Written by 北

十一月 15th, 2009 at 9:06 上午

Posted in program

2009.11.14

without comments

夕阳

昏昏沉沉

一觉醒来后

发现阳台外一片落日余晖

马上拿出相机记录下了

Written by 北

十一月 14th, 2009 at 2:25 上午

Posted in life