摘要: reloadData should be called in main thread, so if you call it in work thread, you should call it as follows: dispatch_async(dispatch_get_main_queue(),... 阅读全文
posted @ 2013-08-20 15:19 chuwachen 阅读(125) 评论(0) 推荐(0)
摘要: Define two methods in an object class as follows:@interface MyObject : NSObject@property (nonatomic,copy) NSString *property;- (id)initWithJson:(NSDic... 阅读全文
posted @ 2013-08-20 15:05 chuwachen 阅读(105) 评论(0) 推荐(0)
摘要: public static string ObjToJson(T obj) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType()); ... 阅读全文
posted @ 2013-08-20 14:28 chuwachen 阅读(140) 评论(0) 推荐(0)