RSS

Tips and Tricks

  • Press ‘esc’ to bring up a list of possible auto complete options
  • To add a comment in your code you can use either of these options:

Single line comment:

1
2
3
// This is a single lined comment!
// You can use these at the end of a line of code.
// Or you can use these without any code it front of it, doesn't matter.

Multi-lined comment:

1
2
3
4
5
/*
This is a multi-lined comment
You can continue writing however much you want,
And the program knows to just skip over it, as it only matters to us, the developer.
*/

Get the title from a web page displayed in a UIWebView:

1
2
NSString* title = [webView stringByEvaluatingJavaScriptFromString: @"document.title"]; 
navbar.title = title;