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".
  • IPhone iOS 4 Development Essentials - Techotopia
    iPhone Applications The DatePicker and PickerView Components A DatePicker Example Designing the User Interface Coding the Date Picker Example Functionality Releasing Memory Building and Running the iPhone Date Picker Application An iOS 4 iPhone UIPickerView Example Creating the iOS 4 PickerView Project UIPickerView Delegate and DataSource The pickerViewController h File Designing the User Interface Initializing the Arrays Implementing the DataSource Protocol Implementing the Delegate Hiding the Keyboard Testing the Application Working with Directories on iOS 4 iPhone The Application Documents Directory The Objective C NSFileManager NSFileHandle and NSData Classes Understanding Pathnames in Objective C Creating an NSFileManager Instance Object Identifying the Current Working Directory Identifying the Documents Directory Identifying the Temporary Directory Changing Directory Creating a New Directory Deleting a Directory Listing the Contents of a Directory Getting the Attributes of a File or Directory Working with Files on iOS 4 iPhone Creating an NSFileManager Instance Checking if a File Exists Comparing the Contents of Two Files Checking if a File is Readable Writable Executable Deletable Moving Renaming a File Copying a File Removing a File Creating a Symbolic Link Reading and Writing Files with NSFileManager Working with Files using the NSFileHandle Class Creating an NSFileHandle Object NSFileHandle File Offsets and Seeking Reading Data from a File Writing Data to a File Truncating a File iOS 4 iPhone Directory Handling and File I O A Worked Example The Example iPhone Application Setting up the Application project Defining the Actions and Outlets Designing the User Interface Checking the Data File on Application Startup Implementing the Action Method Building and Running the Example iOS 4 iPhone Data Persistence using Archiving An Overview of Archiving The Archiving Example Application Implementing the Actions and Outlets Releasing Memory Designing the iPhone User Interface Checking for the Existence of the Archive File on Startup Archiving Object Data in the Action Method Testing the Application iOS 4 iPhone Database Implementation using SQLite What is SQLite Structured Query Language SQL Trying SQLite on MacOS X Preparing an iOS 4 Application Project for SQLite Integration Key SQLite Functions Declaring a SQLite Database Opening or Creating a Database Preparing and Executing a SQL Statement Creating a Database Table Extracting Data from a Database Table Closing a SQLite Database An Example SQLite based iOS 4 iPhone Application About the Example SQLite iPhone Application Creating and Preparing the SQLite Application Project Importing sqlite3 h and Declaring the Database Reference Creating the Outlets and Actions Releasing Memory Creating the Database and Table Implementing the Code to Save Data to the SQLite Database Implementing Code to Extract Data from the SQLite Database Designing the User Interface Building and Running the Application Working with iOS 4 iPhone Databases using Core Data The Core Data Stack Managed Objects Managed Object Context Managed Object Model Persistent Store Coordinator Persistent Object Store Defining an Entity Description Obtaining the Managed Object Context Getting an Entity Description Creating a Managed Object Getting and Setting the Attributes of a Managed Object Fetching Managed Objects Retrieving Managed Objects based on Criteria An

    Original URL path: http://www.techotopia.com/index.php?title=IPhone_iOS_4_Development_Essentials&printable=yes (2016-02-13)
    Open archived version from archive


  • About iPhone App Development Essentials - Techotopia
    edition contains 105 chapters The iPhone and its peers in the smartphone market are remarkable technological achievements In a device small enough to put in your pocket the iPhone can make phone calls send and receive email SMS and MMS messages stream and play audio and video detect movement and rotation vibrate adapt the display brightness based on the ambient lighting surf the internet run apps from a selection of hundreds of thousands take high resolution photos record video tell you your exact location provide directions to your chosen destination play graphics intensive games and even detect when you put the device to your ear Perhaps the most amazing thing about the iPhone is that all of these capabilities and hardware features are available to you as an app developer In fact once you have an iPhone an Intel based Mac computer the iPhone SDK a copy of the Xcode development environment and the necessary skills the only limit to the types of apps you can create is your own imagination and of course the restrictions placed on apps accepted into the Apple App Store The aim of this book is to teach you the skills necessary to build your

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

  • The Anatomy of an iPhone - Techotopia
    phone to your ear presumably to extend the battery life during a phone call and to avoid making user interface selections with the side of your face The device also has ambient light detection that adjusts the screen brightness to ensure the optimal screen visibility in a variety of lighting conditions from bright sunlight to darkness Wireless Connectivity The iPhone 3GS supports a wide range of connectivity options When within range of a Wi Fi network the device can connect at either 802 11b 11 Megabits per second or 802 11g 54 Megabits per second speeds For making phone calls or transferring data when not connected to Wi Fi the device supports GSM EDGE connectivity otherwise known as 2G For faster speeds support is also provided for connectivity via technology referred to as High Speed Downlink Packet Access HSDPA This is better known as 3G and provides data transfer speeds of up to 7 2 megabits per second The iPhone 3GS also includes Bluetooth v2 1 support though this functionality is limited to headset support Wired Connectivity Given the wide array of wireless options it is not surprising that the iPhone has little need for wired connections In fact the iPhone only has two One is a standard 3 5 mm headset jack for the attachment of headphones or other audio devices The second is a proprietary 30 pin dock connector that by default is used to provide a USB v2 0 connection for synching with a computer system and battery charging In practice however this connection also provides audio and TV output via specialty third party cables Memory The iPhone 3GS comes in two editions one with containing 16GB of memory and another with 32GB The memory is in the form of a flash drive Unlike some devices the iPhone lacks the ability to supplement the installed memory by inserting additional flash memory cards Camera The iPhone 3GS contains a 3 15 megapixel 2048x1536 pixels autofocus camera that may also be used to record video at VGA resolution at a rate of 30 frames per second Sensors The latest generation of iPhone has an array of sensors that would make even the most die hard 1960s science fiction fan jealous These consist of a proximity sensor that detects when the front of the phone is covered or otherwise obscured an accelerometer that uses the pull of gravity to detect when the device is moved or rotated and an ambient light sensor that detects current environmental light levels Location Detection google IOSBOX google The iPhone contains a digital compass and GPS support with Assisted GPS A GPS support Essentially this enables the iPhone to detect the direction the device is facing and to identify the current location by detecting radio signals from GPS satellites In the event that GPS signals are unavailable or too weak to establish the current coordinates the iPhone can also gain an approximate location using cellular and Wi Fi information Central Processing Unit CPU The central

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

  • The iPhone OS Architecture and Frameworks - Techotopia
    layers make up what is known as an operating system In the case of the iPhone this operating system is known as the iPhone OS In order to gain a better understanding of the iPhone development environment this chapter will look in detail at the different layers that make up the iPhone OS An Overview of the iPhone OS Architecture As previously mentioned the iPhone OS consists of a number of different software layers each of which provides programming frameworks for the development of applications that run on top of the operating system These operating system layers can be presented diagrammatically as illustrated in the following figure Some diagrams designed to graphically depict the software stack of the iPhone OS show an additional box positioned above the Cocoa Touch layer to indicate the applications running on the device In the above diagram we have not done so since this would suggest that the only interface available to the app is Cocoa Touch In practice an app can directly call any of the layers of the stack to perform tasks on the device That said however each operating system layer provides an increasing level of abstraction away from the complexity of working with the hardware You should therefore always look for solutions to your programming goals in the frameworks located in the higher level OS layers before writing code that reaches down to the lower level layers In general the higher level of layer you program too the less effort and fewer lines of code you will have to write to achieve your objective And as any veteran programmer will tell you the less code you have to write the less opportunity you have to introduce bugs iPhone Development Frameworks Now that we have identified the various layers that comprise the

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

  • The iPhone OS Cocoa Touch Layer - Techotopia
    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 iphone library 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 you with 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 the email addressing information and message content Alternatively this

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

  • The iPhone OS Media Layer - Techotopia
    running on MacOS X will be pleased to learn that the implementation of this API is the same on the iPhone 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 light weight version of the full OpenGL specification designed specifically for smaller devices such as the iPhone Version 3 0 of the iPhone OS supports both OpenGL ES 1 1 and 2 0 on certain iPhone models such as the iPhone 3GS Earlier versions of the iPhone OS and older models support only OpenGL ES version 1 1 iPhone Audio Support The iPhone OS is capable of supporting audio in AAC Apple Lossless ALAC A law IMA ADPCM Linear PCM µ law DVI Intel IMA ADPCM Microsoft GSM 6 10 and AES3 2003 formats through the support provided by the following frameworks AV Foundation framework AVFoundation framework An Objective C based framework designed to allow the playback recording and management of audio content Core Audio Frameworks CoreAudio framework AudioToolbox framework and AudioUnit framework The frameworks that comprise Core Audio for the iPhone OS define supported audio types

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

  • The iPhone OS Core Services Layer - Techotopia
    perform common tasks when working with structured data in an application Core Foundation Framework CoreFoundation framework The Core Foundation is a C based Framework that provides basic functionality such as data types string manipulation raw block data management URL manipulation threads and run loops date and times basic XML manipulation and port and socket communication Additional XML capabilities beyond those included with this framework are provided via the libXML2 library Though this is a C based interface most of the capabilities of the Core Foundation framework are also available with Objective C wrappers via the Foundation Framework 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 WiFi network data or cell tower triangulation or some combination of the three Store Kit Framework StoreKit framework The purpose of the Store Kit framework is to facilitate commerce transactions between your application and the Apple App Store Prior to version 3 0 of the iPhone OS it was only possible to charge a customer for an app at the point that they purchased it from the App

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

  • The iPhone OS Core OS Layer - Techotopia
    accessories and the usual fundamental operating system services such as memory management file system handling and threads CFNetwork Framework CFNetwork framework The CFNetwork framework provides a C based interface to the TCP IP networking protocol stack and low level access to BSD sockets This enables application code to be written that works with HTTP FTP and Domain Name servers and to establish secure and encrypted connections using Secure Sockets Layer SSL or Transport Layer Security TLS 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 iPhone OS 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 iPhone OS 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 iPhone OS 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 an app developer your access to the System interfaces is restricted for security and stability reasons Those interfaces that are available to you are contained in a C based library called LibSystem As with all other layers of

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



  •