Posts by Caipira Voador • 21 points
3 posts
-
1
votes2
answers69
viewsA: viewDidAppear equivalent on apple watch
From watchOS 2.0, you can use the didAppear method, which will be called right after the screen elements have been shown. Wkinterfacecontroller Class Reference…
-
1
votes2
answers171
viewsA: Make arc4random() not repeat last number
It follows code that does not allow dozens to be repeated. In the example, 6 tens will be drawn between the number 1 and 60. NSMutableArray * arrayNumbers = [NSMutableArray new]; while (YES) { int…
-
0
votes2
answers83
viewsA: Why is there a 'Nsinvalidargumentexception' in this code?
Testing if "s" != NULL is the same thing as just testing "s". Thus: + (NSString*) getText:(sqlite3_stmt *)stmt idx:(int)idx { char *s = (char *) sqlite3_column_text(stmt, idx); if (s) return…