In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Create a contact_us_controller.rb
file inside the app
folder."
A block of code is set as follows:
@submit_button.addTarget(self, action:''send_message'', forControlEvents:UIControlEventTouchUpInside)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
def setupNavigationBar back= UIBarButtonItem.alloc.initWithTitle(''Back'', style:UIBarButtonItemStylePlain,target:nil ,action:nil) self.navigationItem.backBarButtonItem = back; contact_us_button = UIBarButtonItem.alloc.initWithTitle(""Contact Us"", style:UIBarButtonItemStylePlain ,target:self, action:""contact_us"") self.navigationItem.rightBarButtonItem = contact_us_button end def contact_us contact_us_controller = ContactUsController.alloc.initWithNibName(""ViewController"", bundle:nil) presentModalViewController(contact_us_controller, animated:true) end
Any command-line input or output is written as follows:
$rake
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes, for example, appear in the text like this: "Open Xcode and click on Create a new Xcode Project."
18.216.143.65