#import "AppDelegate.h"
#import "RootTableViewController.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
RootTableViewController *rootVC = [RootTableViewController new];
UINavigationController *navC = [[UINavigationController alloc]initWithRootViewController:rootVC];
self.window.rootViewController = navC;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
@interface QiubaiModel : NSObject
@property(nonatomic,retain)NSNumber *comments_count; //评论总数
@property(nonatomic,retain)NSString *content; //帖子内容
@property(nonatomic,retain)NSNumber *created_at; //发帖时间
@property(nonatomic,retain)NSString *user_name; //用户名称
@end
#import "QiubaiModel.h"
@implementation QiubaiModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
NSLog(@"该键所对应的值未赋给属性 QiuBaiModel---%@",key);
}
#import "RootTableViewController.h"
#import "CustomCell.h"
#import "QiubaiModel.h"
@interface RootTableViewController ()
@property(nonatomic,retain)NSArray *allDataArray; //接收plist文件的所有内容
@property(nonatomic,retain)NSMutableArray *allModeArray; //存储所有的model类
@end
@implementation RootTableViewController
-(NSMutableArray *)