You have to add a new custom Run Script Build Phase, in Xcode: Project > New Build Phase > New Run Script Build Phase and use the next run script: KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"find ${SRCROOT} \( -name "*.h" -or -name "*.m" \) -print0 | \ xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" |...

<ol><li>Implement UITextFieldDelegate in your viewcontroller.</li><li>Add the next method to .m of your viewcontroller:</li></ol><ol> <pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSCharacterSet *nonNumberSet =...

Add the next method to code:<pre class="default prettyprint" style="background-color: #eeeeee; border-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;">-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent...

Use sleepUntilDate method of NSThread:<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> NSDate *future = [NSDate dateWithTimeIntervalSinceNow: 2.2 ]; //In seconds [NSThread sleepUntilDate:future]; </pre><div class="p2"><h3>Useful links</h3><div><ul><li>Run code in main thread from...

Get ASCII value char c = 'A'; int x = (int)c; Now x is equal to 65 (ASCII code of char ‘A’)<h3></h3><h3></h3><h3>Convert ‘1’ char to 1 int value</h3><div>Only works with chars ‘0’ - ‘9’</div><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto;...