image link http://images.cnblogs.com/cnblogs_com/tinkl/253133/o_2445FE59-4074-4301-B423-A362740C3FBC.png
tinkl, is some of my experiences,hope that can help ios developers.make the word be better and easier
TKDynamicRACTableView uses ARC and requires iOS 7.0+.
It probably will work with iOS 6, I have not tried,but it is not using any iOS7 specific APIs.
just download zip file… > and you can use it .
if you have some Question to ask me, you can contact email nicolastinkl@gmail.com link.
or see blogs http://www.cnblogs.com/tinkl/
Just see this:
NetWork with Get request:
- (RACSignal *)fetchPostsWithURL:(NSString *)urlString
{
return [[self rac_GET:urlString parameters:nil] map:^id(NSDictionary *data) {
return [[((NSArray *)data[@"moments"]).rac_sequence map:^id(id value) {
return [[TKPost alloc] initWithDictionary:value error:nil];
}] array];
}];
}
Post request:
- (RACSignal *)fetchPostsWithPost:(NSMutableDictionary * ) params
{
UALog(@"send json: %@",params);
return [[[[self rac_POST:@"http://api.petta.mobi/api.do" parameters:params] map:^id(id posts) {
/*!
* reponse code 200
*/
UALogFull(@" reponse code 200 ");
if (posts) {
UALog(@"response message : %@",posts[@"response"][@"response_msg"]);
}
if (posts && [posts[@"response"][@"response_code"] intValue] == 0) {
NSArray * moments = posts[@"moments"];
UALog(@"moments %lu",(unsigned long)moments.count);
return [[moments.rac_sequence map:^id(id value) {
TKPost * post = [[TKPost alloc] initWithDictionary:value error:nil];
post.posttype = @"singleimage";
return post;
}] array];
}else{
/*!
* error maybe network error
*/
return @[];
}
}] catch:^RACSignal *(NSError *error) {
return [RACSignal error:error];
}] replayLazily];
}
Data init :
@weakify(self);
[RACObserve(self, viewModel.post) subscribeNext:^(NSArray * posts) {
@strongify(self);
if (posts.count > 0) {
self.tableViewDataSource.posts = [posts copy];
[self.tableView reloadData];
}else{
UALog(@"NO data");
}
}];
- Gives Xcode's autocompletion to be able to filter like Open Quickly does2. Ordered
- Supports Xcode 5.0, 5.0.1, 5.0.2 and 5.1
- Supports Xcode's learning and context-aware priority system
- Uses Grand Central Dispatch to parallelise matching
- Productivity++
- Only tested with Xcode 5 on 10.8.5
- Hasn't been tested with other plugins
- Add ReactiveViewModel ,ReactiveCocoa , Objection.....
- Add (MVVM) .
- Add JsonModel
- add UIView-AutoLayout
Initial release