Tag: Apple

  • 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…

  • Different data types in Objective-C

    Objective-C like any other programming languages has different data types like int, float, double, char and id. Data types are used for specifying the kind of data that is being stored in a variable. For example, the below code stores a single character to a variable “flag” char flag = ‘1’ Data type – char…

  • XCode’s iOS Simulator for iPhone and iPad

    iOS Simulator in Xcode can be used for testing iOS apps before trying the apps on a live device. Listed below are the different settings and features on iOS Simulator. Launching iOS Simulator iOS Simulator can be launched by executing Program on Xcode Run Program on Xcode : Keyboard Shortcut is Command + R, Menu…

  • How to archive multiple email messages on iPhone or iPad

    This tutorial provides the steps required for archiving multiple email messages on iPhone or iPad. You can use the same procedures for deleting or moving more than one messages. Step 1: Tap the Mail app on iPhone or iPad. Step 2: Select the mailbox for archiving email messages then tap the Edit button. Step 3:…

  • Provisioning iPhone 4S for deploying and testing Apps

    Listed below are detail steps for provisioning iPhone 4S for deploying and testing Apps. The steps have been broadly classified in to the following topics. Requesting Development Certificate Submit Certificate in iOS Provisioning Portal Installing Certificate Registering Device to Provisioning Portal Requesting Development Certificate Requesting development certificate requires you to generate a Certificate Signing Request…

  • Apple Mach-O-Linker Id Error – OBJC_CLASS_$_MFMailComposeViewController

    Xcode displays the Apple Mach-O undefined symbols for architecture error when the library referred in the code is not included as part of Build Phases. For example, I was instantiating MFMailComposeViewController in one of my project   MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init]; And while trying to compile the code, the build failed and displayed the…