Store data in tableview to NSUserDefaults
- by Jozef Vrana
Tricks.h file
#import "Tricks.h"
@implementation Tricks
static NSMutableArray *trickList = nil;
+(NSMutableArray *)trickList
{
if(!trickList){
trickList = [[NSMutableArray alloc]init];
}
return trickList;
}
@end
Tricks.m file
@interface Tricks : NSObject
@property(strong, nonatomic) NSString *trickName;
Method for…