ios - Why does Xcode skip for loop code? -
is simply to ask is whether this method Here Akltn method should be your method: You currently have the Then, your < code> init method should call your initWithNibName end, it
logInIDArray < / code> and
passwordArray assets have become zero?
- initWithNibName (ID): (NSString *) nibNameOrNil Bundle: (NSBundle *) nibBundleOrNil gives {// shared lag Indetabes Akltn self = [super initWithNibName: nibNameOrNil Bundle: nibBundleOrNil]; If (self) {BNRLogInDataBase * logInDatabase = [BNRLogInDataBase shared log database]; logInDatabase.logInIDArray = [[NSMutableArray alloc] init]; logInDatabase.passwordArray = [[NSMutableArray alloc] init]; } Healthy return; }
+ (instancetype) shared log Indetabes {static BNRLogInDataBase * database = null; If (! Zero) {database = [[BNRLogInDataBase alloc] initPrivate]; } Return database; } - (instancetype) init {@throw [NSException exception Sathanam: @ "singleton" because: Do @ "using shared log Indetabes" userInfo: nil]; } - (instancetype) initPrivate {self = [super init]; Self return; }
+ (instancetype) sharedLogInDataBase {Once in a stationary transmission • Once; Static id sharing person; Transmission_and (& amp; one time, ^ {shareInstance = [[allocation] init];)); Return Share Instance;
if (! Nil) does not do what you expect it ...
initPrivate method.
Comments
Post a Comment