I can’t understand why this code is throwing exception of Bad Access:
- (void)viewDidLoad
{
TheUserEntity* userEntity = [TheUserEntity alloc];
TheUserModel* userModel = [TheUserModel alloc];
userEntity = [userModel Read:1];
[super viewDidLoad];
}
TheUserEntity and TheUserModel are my own classes, 1 has only properties other only CRUD methods
any help? I’m new in iOS development, thanks
You have to call
initon your objects:Your method names should start with lower case letters, that’s a convention.