Month: February 2012

  • How to hide bookmarks bar in Safari on iPad

    Safari browser on iPad, like any other PC or Mac browsers allows users to save webpage URL as bookmark. It also provides a separate Bookmarks Bar for easily accessing these saved URLs. Screenshot with saved bookmarks If you are not using the Bookmarks Bar on Safari then you have the option to turn off the…

  • Code Example – Check for Prime Number Objective C

    This is a simple Objective C program written to check whether a number is a Prime number. // // main.m // PrimeNumbers // // Created by Ravi Shankar on 10/02/12. // Copyright (c) 2012 rshankar.com. All rights reserved. // #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool {    int number;…

  • How to disable code completion suggestion in Xcode

    Xcode is one of the powerful IDE for IOS development and by default it supports code completion suggestion. Code completion feature suggests users with possible code substitution when you start typing first few letters of code in Xcode editor. For example, if you have UILabel reference variable and start typing “t” after the dot then…

  • How to set Organization name for Xcode Project

    When ever a new project is created in Xcode, the projects files like header and implementation files will have auto generated comment section at the top of the file. This comment section will have information such as file name, Project name, Author and Organization name. // // ViewController.h // Welcome // // Created by Ravi…

  • iPad App that prints Welcome Message

    Here is an example of writing an iPad app that prints a Welcome message. Launch Xcode, click File -> New -> New Project. Now select the template for the project as Single View Application. Provide the details for your project, like Product Name, Company Name then choose the device for which you are writing the…