Category: Apple

  • How to change page scaling in Xcode

    Xcode provides option to increase or decrease the page scaling. This page scaling option is available as part of the Page Setup. This feature is quite useful when you want reduce the number of pages used for printing any Objective-C code. The default page scale is set to 100% and you can change this by…

  • What is Delegation in iOS ?

    Delegation is one of the commonly used pattern in iOS. This is used tell an object to act on behalf of another. Refer to Apple documentation for detailed information on delegate pattern. Let us see this with an example program that uses UITextFieldDelegate. This is a SingleView Project with one UITextField control. #import “ViewController.h” @interface…

  • Different ways to connect IBAction to UIButton

    In this tutorial, we are going to see the different ways for connecting IBAction to UIButton. Let see this with an example that displays an alert message on the touch event of UiButton. Method 1 (Assistant Editor): Step 1: Drag and drop Round Rect Button from the Objects library on to Interface builder. Step 2:…

  • How to add YouTube video to Word 2011.

    In this tutorial we are going to see the steps required for adding videos from Youtube in Word 2011 for Mac. In Office 2011 you can not directly embed YouTube video URL. If you want to insert videos then you need to the following. first download the video using third party software Insert the downloaded…

  • Reduce the time taken for searching iOS documentation using Xcode

    This tip is for iOS developers who want to reduce the time taken while searching iOS documentation using Xcode. Documentation under the Xcode organiser window by default shows information on OS X as well. If you are not a Mac developer then you can turn off the documentation related with OS X. Step 1: Launch…

  • Variables in Objective-C

    Objective-C also uses variables for storing data in memory like other programming languages. The variables are defined based on the type data type that will be stored. The general rule followed for naming variable are Use the camel case convention for variable i.e the first word in lowercase and second word in uppercase. For example…

  • Create an example iOS Project using Xcode

    We had already covered the basic overview of Xcode and now we are going see the steps required for creating an sample iOS Project that displays Welcome message on Xcode simulator. Topics Covered Create New Project using Xcode. Add label control to Interface Builder. Edit label to add Welcome message Choose simulator in Xcode. Compile,…

  • NSLog datatype formatting option in Objective-C

    NSLog in Objective-C is function call that is useful during debugging of a program. A typical NSLog example is NSLog(@” How to use NSLog”); The above statement prints the message ” How to use NSLog ” in console window. If you want to print the value of Objective-C variable or data type then you need…