archive-com.com » COM » T » TECHOTOPIA.COM

Total: 1018

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • The iPhone iOS 4 Cocoa Touch Layer - Techotopia
    to peer connectivity between devices Connection to external displays To get a feel for the richness of this framework it is worth spending some time browsing Apple s UIKit reference material which is available online at http developer apple com library ios documentation UIKit Reference UIKit Framework index html Map Kit Framework MapKit framework If you have spent any appreciable time with an iPhone then the chances are you have needed to use the Maps application more than once either to get a map of a specific area or to generate driving directions to get you to your intended destination The Map Kit framework provides a programming interface that enables you to build map based capabilities into your own applications This allows you to amongst other things display scrollable maps for any location display the map corresponding to the current geographical location of the device and annotate the map in a variety of ways Push Notification Service The Push Notification Service allows applications to notify users of an event even when the application is not currently running on the device Since the introduction of this service it has most commonly been used by news based applications Typically when there is breaking news the service will generate a message on the device with the news headline and provide the user the option to load the corresponding news app to read more details This alert is typically accompanied by an audio alert and vibration of the device This feature should be used sparingly to avoid annoying the user with frequent interruptions Message UI Framework MessageUI framework The Message UI framework provides everything you need to allow users to compose and send email messages from within your application In fact the framework even provides the user interface elements through which the user enters

    Original URL path: http://www.techotopia.com/index.php/The_iPhone_iOS_4_Cocoa_Touch_Layer (2016-02-13)
    Open archived version from archive


  • The iPhone iOS 4 Media Layer - Techotopia
    also allows new photos and videos to be saved to the standard device photo album Core Graphics Framework CoreGraphics framework The iOS Core Graphics Framework otherwise known as the Quartz 2D API provides a lightweight two dimensional rendering engine Features of this framework include PDF document creation and presentation vector based drawing transparent layers path based drawing anti aliased rendering color manipulation and management image rendering and gradients Those familiar with the Quartz 2D API running on MacOS X will be pleased to learn that the implementation of this API is the same on iOS Quartz Core Framework QuartzCore framework The purpose of the Quartz Core framework is to provide animation capabilities on the iPhone It provides the foundation for the majority of the visual effects and animation used by the UIKit framework and provides an Objective C based programming interface for creation of specialized animation within iPhone apps OpenGL ES framework OpenGLES framework For many years the industry standard for high performance 2D and 3D graphics drawing has been OpenGL Originally developed by the now defunct Silicon Graphics Inc SGI during the 1990s in the form of GL the open version of this technology OpenGL is now under the care of a non profit consortium comprising a number of major companies including Apple Inc Intel Motorola and ARM Holdings OpenGL for Embedded Systems ES is a lightweight version of the full OpenGL specification designed specifically for smaller devices such as the iPhone iOS 3 or later supports both OpenGL ES 1 1 and 2 0 on certain iPhone models such as the iPhone 3GS and iPhone 4 Earlier versions of iOS and older device models support only OpenGL ES version 1 1 iOS Audio Support google IOSBOX google iOS is capable of supporting audio in AAC Apple Lossless ALAC

    Original URL path: http://www.techotopia.com/index.php/The_iPhone_iOS_4_Media_Layer (2016-02-13)
    Open archived version from archive

  • The iPhone iOS 4 Core Services Layer - Techotopia
    upon which the AV Foundation layer is built Whilst most audio and video tasks can and indeed should be performed using the higher level AV Foundation framework access is also provided for situations where lower level control is required by the iOS application developer Core Telephony Framework CoreTelephony framework The iOS Core Telephony framework is provided to allow applications to interrogate the device for information about the current cell phone service provider and to receive notification of telephony related events EventKit Framework EventKit framework An API designed to provide applications with access to the calendar and alarms on the device Foundation Framework Foundation framework The Foundation framework is the standard Objective C framework that will be familiar to those that have programmed in Objective C on other platforms most likely Mac OS X Essentially this consists of Objective C wrappers around much of the C based Core Foundation Framework Core Location Framework CoreLocation framework The Core Location framework allows you to obtain the current geographical location of the device latitude and longitude and compass readings from with your own applications The method used by the device to provide coordinates will depend on the data available at the time the information is requested and the hardware support provided by the particular iPhone model on which the app is running GPS and compass are only featured on recent models This will either be based on GPS readings Wi Fi network data or cell tower triangulation or some combination of the three Mobile Core Services Framework MobileCoreServices framework The iOS Mobile Core Services framework provides the foundation for Apple s Uniform Type Identifiers UTI mechanism a system for specifying and identifying data types A vast range of predefined identifiers have been defined by Apple including such diverse data types as text RTF HTML

    Original URL path: http://www.techotopia.com/index.php/The_iPhone_iOS_4_Core_Services_Layer (2016-02-13)
    Open archived version from archive

  • The iPhone iOS 4 Core OS Layer - Techotopia
    performing complex and large number math vector digital signal processing DSP and image processing tasks and calculations External Accessory framework ExternalAccessory framework Provides the ability to interrogate and communicate with external accessories connected physically to the iPhone via the 30 pin dock connector or wirelessly via Bluetooth Security Framework Security framework The iOS Security framework provides all the security interfaces you would expect to find on a device that can connect to external networks including certificates public and private keys trust policies keychains encryption digests and Hash based Message Authentication Code HMAC System LibSystem As we have previously mentioned the iOS is built upon a UNIX like foundation The System component of the Core OS Layer provides much the same functionality as any other UNIX like operating system This layer includes the operating system kernel based on the Mach kernel developed by Carnegie Mellon University and device drivers The kernel is the foundation on which the entire iOS is built and provides the low level interface to the underlying hardware Amongst other things the kernel is responsible for memory allocation process lifecycle management input output inter process communication thread management low level networking file system access and thread management As

    Original URL path: http://www.techotopia.com/index.php/The_iPhone_iOS_4_Core_OS_Layer (2016-02-13)
    Open archived version from archive

  • Installing Xcode and the iOS 4 SDK - Techotopia
    the dialog on your Mac does not reflect the presence of an Intel based processor then your current system is sadly unsuitable as a platform for iPhone iOS app development Installing Xcode and the iOS 4 SDK The best way to obtain the latest versions of Xcode and the iOS SDK is to download them from the Apple iOS Dev Center web site at http developer apple com devcenter ios index action In order to download Xcode with the iOS SDK you will need a Registered Apple Developer account Fortunately membership is free and can be activated using your existing Apple account for example the one you use to buy music on iTunes Once you have registered you will gain access to the Apple iOS Developer Center web site where download links are provided for Xcode and the iOS SDK The download is over 3 5GB in size and will take a number of hours to complete depending on the speed of your internet connection The package takes the form of a disk image dmg file Once the download has completed a new window will open as follows displaying the contents of the dmg file If this window does not open by default it can be opened by clicking on the SDK disk drive icon on the desktop or by navigating to the Downloads directory of your home folder and double clicking on the corresponding dmg file Initiate the installation by double clicking on the package icon the one that looks like an opening box and follow the instructions until you reach the Custom Install screen The default selections on this screen are adequate for most requirements so unless you have specific needs there is no necessity to alter these selections Continue to the next screen review the information and

    Original URL path: http://www.techotopia.com/index.php/Installing_Xcode_and_the_iOS_4_SDK (2016-02-13)
    Open archived version from archive

  • Creating a Simple iPhone iOS 4 App - Techotopia
    enter the code to make our application work others are header files h that are included by the source files and are where we will also need to put our own declarations and definitions In addition the xib files are the save files used by the Interface Builder tool to hold the user interface designs we will create Older versions of Interface Builder saved designs in files with a nib extension so these files even today are called NIB files Also present will be one or more files with a plist file extension These are Property List files that contain key value pair information For example the HelloWorld info plist file contains resource settings relating to items such as the language icon file executable name and app identifier Also listed are some frameworks that Xcode believes we will need during the development of our app Additional Frameworks can be added to the project by right clicking or Ctrl clicking on the Frameworks folder located in the left hand Groups and Files panel and selecting Add Existing Frameworks from the menu A list of available frameworks will be displayed from which you may select the framework you need When a source file is selected from the list in the main panel the contents of that file will appear in the panel below where it may then be edited To open the file in a separate editing window simply double click on the file in the list Creating the iOS App User Interface Simply by the very nature of the environment in which they run iPhone apps are typically visually oriented As such a key component of just about any app involves a user interface through which the user will interact with the application and in turn receive feedback Whilst it is possible to develop user interfaces by writing code to create and position items on the screen this is a complex and error prone process In recognition of this Apple provides a tool called Interface Builder that allows a user interface to be visually constructed by dragging and dropping components onto a canvas and setting properties to configure the appearance and behavior of those components Interface Builder was originally developed some time ago for creating Mac OS X applications but has now been updated to allow for the design of iOS app user interfaces As mentioned in the preceding section Xcode pre created a number of files for our project some of which have a xib filename extension These are Interface Builder save files remember that they are called NIB files not XIB files The file we are interested in for our HelloWorld project is called HelloWorldViewController xib To load this file into Interface Builder simply double click on the file name in the list Interface Builder will subsequently start up and display a number of windows as shown in the following figure The smaller dialog entitled HelloWorldViewController xib contains the key objects that make up the view controller for our

    Original URL path: http://www.techotopia.com/index.php/Creating_a_Simple_iPhone_iOS_4_App (2016-02-13)
    Open archived version from archive

  • Testing iOS 4 Apps on the iPhone – Developer Certificates and Provisioning Profiles - Techotopia
    you are the administrator for the iOS Developer Program membership you may approve your own certificate request by clicking on the Approve button located in the Action column of the Your Certificate table Your certificate is now active and the table will refresh to include a button to Download the certificate Installing an iOS Development Certificate Once a certificate has been requested and approved it must be installed on the development system so that Xcode can access it and use it to sign any applications you develop The first step in this process is to download the certificate from the iOS Provisioning Portal by clicking on the Download button located on the certificates page outlined in the previous section Once the file has downloaded double click on it to load it into the Keychain Access tool The certificate will then be listed together with a status hopefully one that reads This certificate is valid Your certificate is now installed into your Keychain and you are ready to move on to the next step Assigning Devices Once you have a development certificate installed the next step is to specify which devices are to be used to test the iOS apps you are developing This is achieved by entering the Unique Device identifier UDID for each device into the Provisioning Portal Note that Apple restricts developers to 100 devices per year The UDID for a device may be obtained either via Xcode or iTunes Begin by connecting the device to your computer using the docking connector Once Xcode has launched the Organizer screen will appear displaying summary information about the device or may be opened by selecting Window Organizer The UDID is listed next to the Identifier label as illustrated in the following figure Alternatively launch iTunes select the device in the left hand pane and review the Summary information page One of the fields on this page will be labeled as Serial Number Click with the mouse on this number and it will change to display the UDID Having identified the UDIDs of any devices you plan to use for app testing select the Devices link located in the left hand panel of the iOS Provisioning Portal and click on Add Devices in the resulting page On the Add Devices page enter a descriptive name for the device and the 40 character UDID In order to add more than one device at a time simply click on the button to create more input fields Once you have finished adding devices click on the Submit button The newly added devices will now appear on the main Devices page of the portal Creating an App ID The next step in the process is to create an App ID for each app that you create This ID allows your app to be uniquely identified within the Apple iOS application infrastructure To create an App ID select the App IDs link in the provisioning portal and click on the New App ID button to display

    Original URL path: http://www.techotopia.com/index.php/Testing_iOS_4_Apps_on_the_iPhone_%E2%80%93_Developer_Certificates_and_Provisioning_Profiles (2016-02-13)
    Open archived version from archive

  • The Basics of iPhone iOS 4 Object Oriented Programming in Objective-C - Techotopia
    may also be defined to accept more than one argument For example to define a method that accepts both the account number and account balance we could declare it as follows void setAccount long y andBalance double x Now that we have an understanding of the structure of method declarations within the context of the class interface definition we can extend our BankAccount class accordingly interface BankAccount NSObject double accountBalance long accountNumber void setAccount long y andBalance double x void setAccountBalance double x double getAccountBalance void setAccountNumber long y long getAccountNumber void displayAccountInfo end Having defined the interface we can now move on to defining the implementation of our class Declaring an Objective C Class Implementation The next step in creating a new class in Objective C is to write the code for the methods we have already declared This is performed in the implementation section of the class definition An outline implementation is structured as follows implementation NewClassName ClassMethods end In order to implement the methods we declared in the interface section therefore we need to write the following code implementation BankAccount void setAccount long y andBalance double x accountBalance x accountNumber y void setAccountBalance double x accountBalance x double getAccountBalance return accountBalance void setAccountNumber long y accountNumber y long getAccountNumber return accountNumber void displayAccountInfo NSLog Account Number i has a balance of f accountNumber accountBalance end We are now at the point where we can write some code to work with our new BankAccount class Declaring Initializing and Releasing a Class Instance So far all we have done is define the blueprint for our class In order to do anything with this class we need to create instances of it The first step in this process is to declare a variable to store a pointer to the instance when it is created We do this as follows BankAccount account1 Having created a variable to store a reference to the class instance we can now allocate memory in preparation for initializing the class account1 BankAccount alloc In the above statement we are calling the alloc method of the BankAccount class note that alloc is a class method inherited from the parent NSObject class as opposed to an instance method created by us in the BankAccount class Having allocated memory for the class instance the next step is to initialize the instance by calling the init instance method account1 account1 init For the sake of economy of typing the above three statements are frequently rolled into a single line of code as follows BankAccount account1 BankAccount alloc init In the first step of this section we allocated memory for the creation of the class instance Good programming conventions dictate that memory allocated to a class instance should be released when the instance is no longer required Failure to do so can result in memory leaks such that the application will continue to use up system memory until none is left Those familiar with Java will be used to relying on

    Original URL path: http://www.techotopia.com/index.php/The_Basics_of_iPhone_iOS_4_Object_Oriented_Programming_in_Objective-C (2016-02-13)
    Open archived version from archive



  •