ios - Why does Xcode skip for loop code? -


is simply to ask is whether this method 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; }   

Here Akltn method

  + (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; }    

should be your method:

  + (instancetype) sharedLogInDataBase {Once in a stationary transmission • Once; Static id sharing person; Transmission_and (& amp; one time, ^ {shareInstance = [[allocation] init];)); Return Share Instance;   

You currently have the if (! Nil) does not do what you expect it ...

Then, your < code> init method should call your initPrivate method.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -