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".
  • Introduction to iPad iOS 5 Development Essentials - Techotopia
    a global PC market growth rate of a mere 3 8 This predicted decline in PC sales growth has been largely attributed to the surge in popularity of tablet based computers The concept of a tablet computer is of course nothing new After all Bill Gates demonstrated a Windows based tablet PC at the Comdex trade show in Las Vegas as far back as 2001 The single event that triggered this market shift was the introduction of the iPad in April 2010 Within the first year Apple sold 15 million first generation iPad units The iPad 2 launched in March 2011 and was sold out within the first weekend of sales in each of the countries in which it was marketed Total sales are now believed to have exceeded 20 million units with approximately 8 million new units shipping every quarter When developing for the iPad it is important to understand that you are not just targeting a hardware device In essence you are leveraging an entire ecosystem consisting of the device hardware the iOS operating system software development kit SDK iTunes platform and perhaps most importantly the App Store No longer is the success of a mobile device platform a matter of simply the operating system and hardware Instead a platform will succeed or fail based on the ecosystem to which it belongs Google s understanding of the importance of the applications market for example has contributed significantly to the success of Android based devices Conversely Nokia s failure to create a successful ecosystem was cited by CEO Stephen Elop as a contributing factor to the demise of the Symbian operating system and the company s move to Microsoft s Windows Phone platform for future Nokia smartphones It is also important to understand that most if not all the

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


  • The History of iOS - Techotopia
    version of the story pick up a used copy of John Sculley s book Odyssey From Pepsi to Apple leaving John Sculley in charge After leaving Apple Jobs started a new company that he named NeXT to design an entirely new generation of computer systems The operating system developed by NeXT to run on these computers was called NeXTstep and was based on the Mach kernel developed at Carnegie Mellon University and the Berkeley Standard Distribution BSD system developed at the University of California Berkeley which in turn was based on the UNIX operating system As it became clear that the NeXT hardware was a commercial failure NeXT subsequently joined forces with Sun Microsystems to create a standardized version of NeXTstep named OPENstep which the Free Software Foundation then adopted as GNUstep During the 1990s John Sculley left Apple and a procession of new CEOs came and went During this time Apple had been losing market share and struggling to come out with a new operating system to replace the aging Mac OS After a number of failed attempts and partnerships it was eventually decided that rather than try to write a new operating system Apple should acquire a company that already had one During Gil Amelio s brief reign as CEO a shortlist of two companies was drawn up One was a company called Be Inc founded by a former Apple employee named Jean Louis Gassée and the other was NeXT Ultimately NeXT was selected and Steve Jobs once again joined Apple In another boardroom struggle another long story as outlined in Gil Amelio s book On the Firing Line My 500 Days at Apple Steve Jobs pushed out Gil Amelio and once again became CEO of the company he had founded all those years ago The rest as

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

  • The Anatomy of a New iPad - Techotopia
    For faster speeds support is also provided for connectivity via LTE based UMTS HSPA HSPA DC HSDPA standards The Verizon model also supports CDMA EV DO Rev A The new iPad also includes Bluetooth v4 0 support Wired Connectivity Given the wide array of wireless options it is not surprising that the iPad has little need for wired connections In fact the iPad 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 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 new iPad comes in six configurations divided into Wi Fi only and Wi Fi 4G categories Each category of device is available in 16GB 32GB and 64GB versions The memory is in the form of a flash drive Unlike some devices the iPad lacks the ability to supplement the installed memory by inserting additional flash memory cards Cameras The new iPad contains both front and rear facing cameras The rear camera is capable of recording video at a resolution of 1080p and at a rate of 30 frames per second and can also act as a 5 megapixel still camera The front facing camera is VGA resolution also at 30 fps Sensors Sensors built into the new iPad consist of an accelerometer that uses the pull of gravity to detect when the device is moved or rotated a three axis gyroscope and an ambient light sensor that detects current environmental light levels Location Detection All new iPad models contain a digital compass and the ability to identify approximate location information

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

  • IOS 5 Architecture and SDK Frameworks - Techotopia
    framework provides peer to peer connectivity and voice communication between multiple devices and users allowing those running the same app to interact When this feature was first introduced it was anticipated by Apple that it would primarily be used in multi player games hence the choice of name but the possible applications for this feature clearly extend far beyond games development iAd Framework iAd framework The purpose of the iAd Framework is to allow developers to include banner advertising within their applications All advertisements are served by Apple s own ad service Event Kit UI Framework The Event Kit UI framework was introduced in iOS 4 and is provided to allow the calendar events to be accessed and edited from within an application Accounts Framework Accounts framework iOS 5 introduces the concept of system accounts These essentially allow the account information for other services to be stored on the iOS device and accessed from within application code Currently system accounts are limited to Twitter accounts though other services such as Facebook will likely appear in future iOS releases The purpose of the Accounts Framework is to provide an API allowing applications to access and manage these system accounts Twitter Framework Twitter framework The Twitter Framework allows Twitter integration to be added to applications The framework operates in conjunction the Accounts Framework to gain access to the user s Twitter account information The iOS Media Layer The role of the Media layer is to provide iOS with audio video animation and graphics capabilities As with the other layers comprising the iOS stack the Media layer comprises a number of frameworks which may be utilized when developing iPad apps In this section we will look at each one in turn Core Video Framework CoreVideo framework The Core Video Framework provides buffering support for the Core Media framework Whilst this may be utilized by application developers it is typically not necessary to use this framework Core Text Framework CoreText framework The iOS Core Text framework is a C based API designed to ease the handling of advanced text layout and font rendering requirements Image I O Framework ImageIO framework The Image I O framework the purpose of which is to facilitate the importing and exporting of image data and image metadata was introduced in iOS 4 The framework supports a wide range of image formats including PNG JPEG TIFF and GIF Assets Library Framework AssetsLibrary framework The Assets Library provides a mechanism for locating and retrieving video and photo files located on the iPad device In addition to accessing existing images and videos this framework 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 Core Image Framework CoreImage framework A new framework introduced with iOS 5 providing a set of video and image filtering and manipulation capabilities for application developers Quartz Core Framework QuartzCore framework The purpose of the Quartz Core framework is to provide animation capabilities on the iPad 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 iPad 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 iPad 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 GLKit Framework GLKit framework The GLKit framework is an Objective C based API designed to ease the task of creating OpenGL ES based applications NewsstandKit Framework NewsstandKit framework The Newsstand application is a new feature of iOS 5 and is intended as a central location for users to gain access to newspapers and magazines The NewsstandKit framework allows for the development of applications that utilize this new service iOS Audio Support iOS 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 iOS define supported audio types playback and recording of audio files and streams and also provide access to the device s built in audio processing units Open Audio Library OpenAL OpenAL is a cross platform technology used to provide high quality 3D audio effects also referred to as positional audio Positional audio may be used in a variety of applications though is typically used to provide sound effects in games Media Player Framework MediaPlayer framework The iOS Media Player framework is able to play video in mov mp4 m4v and 3gp formats at a variety of compression standards resolutions and frame rates Core Midi Framework CoreMIDI framework Introduced in iOS 4

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

  • Joining the Apple iOS 5 Developer Program - Techotopia
    versions of the iOS SDK and Xcode development environment The benefits of membership however go far beyond those offered at the Registered Apple Developer level One of the key advantages of the developer program is that it permits the creation of certificates and provisioning profiles to test applications on physical devices Although Xcode includes device simulators which allow for a significant amount of testing to be performed there are certain areas of functionality such as location tracking and device motion which can only fully be tested on a physical device Of particular significance is the fact that iCloud access can only be tested when applications are running on physical devices Of further significance is the fact that iOS Developer Program members have unrestricted access to the full range of guides and tutorials relating to the latest iOS SDK and more importantly have access to technical support from Apple s iOS technical support engineers though the annual fee covers the submission of only two support incident reports By far the most important aspect of the iOS Developer Program is that membership is a mandatory requirement in order to publish an application for sale or download in the App Store Clearly developer program membership is going to be required at some point before your application reaches the App Store The only question remaining is when exactly to sign up When to Enroll in the iOS Developer Program Clearly there are many benefits to iOS Developer Program membership and eventually membership will be necessary to begin selling applications As to whether or not to pay the enrollment fee now or later will depend on individual circumstances If you are still in the early stages of learning to develop iOS applications or have yet to come up with a compelling idea for an application to develop then much of what you need is provided by spending the nominal fee to purchase the latest iOS SDK and Xcode bundle As your skill level increases and your ideas for applications to develop take shape you can after all always enroll in the developer program at a later date If on the other hand you are confident that you will reach the stage of having an application ready to publish or know that you will need to test the functionality of the application on a physical device as opposed to a simulator then it is worth joining the developer program sooner rather than later Enrolling in the iOS Developer Program If your goal is to develop iPad applications for your employer then it is first worth checking whether the company already has membership That being the case contact the program administrator in your company and ask them to send you an invitation from within the iOS Developer Program Member Center to join the team Once they have done so Apple will send you an email entitled You Have Been Invited to Join an Apple Developer Program containing a link to activate your membership If you or your

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

  • Creating a Simple iPad iOS 5 App - Techotopia
    prefix any classes created for us by Xcode when the template project is created Make sure that iPad is currently selected from the Device Family menu and that neither the Use Storyboard nor the Include Unit Tests options are currently selected Automatic Reference Counting is a new feature included with the Objective C compiler which removes much of the responsibility from the developer for releasing objects when they are no longer needed This is an extremely useful new feature and as such the option should be selected before clicking the Next button to proceed On the final screen choose a location on the file system for the new project to be created can click on Create Once the new project has been created the main Xcode window will appear as illustrated in Figure 7 4 Figure 7 4 Before proceeding we should take some time to look at what Xcode has done for us Firstly it has created a group of files that we will need to create our application Some of these are Objective C source code files with a m extension where we will enter the code to make our application work others are header or interface 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 file is the save file used by the Interface Builder tool to hold the user interface design 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 which 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 The list of files is displayed in the Project Navigator located in the left hand panel of the main Xcode project window A toolbar at the top of this panel contains build and run status breakpoints scheme selections and a range of settings to configure the panels displayed by Xcode By default the center panel of the window shows a summary of the settings for the application This includes the identifier specified during the project creation process and the target device Options are also provided to configure the orientations of the device that are to be supported by the application together with options to upload an icon the small image the user selects on the device screen to launch the application and splash screen image displayed to the user while the application loads for the application In addition to the Summary screen tabs are provided to view and modify additional settings consisting of Info Build Settings Build Phases and Build Rules As we progress through subsequent chapters of this book we will explore some of these other configuration options in greater detail To return to the Summary panel at any future point in time make sure the Project Navigator is selected in the left hand panel and select the top item the application name in the navigator list When a source file is selected from the list in the navigator panel the contents of that file will appear in the center panel 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 iPad 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 which 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 one of which has a xib filename extension This is an Interface Builder save file 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 select the file name in the list in the left hand panel Interface Builder will subsequently appear in the center panel as shown in Figure 7 5 Figure 7 5 In the center panel a visual representation of the user interface of the application is displayed Initially this consists solely of the UIView object This UIView object was added to our design by Xcode when we selected the Single View Application option during the project creation phase We will construct the user interface for our HelloWorld app by dragging and dropping user interface objects onto this UIView object Designing a user interface consists primarily of dragging and dropping visual components onto the canvas and setting a range of properties and settings In order to access objects and property settings it is necessary to display the Xcode right hand panel This is achieved by selecting the right hand button in the View section of the Xcode toolbar Figure 7 6 The right hand panel once displayed will appear as illustrated in Figure 7 7 Figure 7 7 Along the top edge of the panel is a row of buttons which change the settings displayed in the upper half of the panel By default the File Inspector is displayed

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

  • Testing iOS 5 Apps on the iPad – Developer Certificates and Provisioning Profiles - Techotopia
    manually adding the device To add a device to the portal from within Organizer simply connect the device open the Organizer window in Xcode using the Organizer toolbar button select the attached device from the left hand panel and click on the Add to Portal button The Organizer will prompt for the developer portal login and password before connecting and enabling the device for testing Manually adding a device on the other hand requires the use of the iPad s UDID This 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 window will appear displaying summary information about the device or may be opened by selecting the Organizer button in the Xcode toolbar The UDID is listed next to the Identifier label as illustrated in Figure 8 8 Figure 8 8 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 Figure 8 9 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 context of the Apple iOS ecosystem To create an App ID select the App IDs link in the provisioning portal and click on the New App ID button to display the Create App ID screen as illustrated in Figure 8 10 Figure 8 10 Enter a suitably descriptive name into the Description field and then make a Bundle Seed ID selection If you have not created any previous Seed IDs then leave the default Generate New selection unchanged If you have created a previous App ID and would like to use this for your new app click on the menu and select the desired ID from the drop down list Finally enter the Bundle Identifier This is typically set to the reversed domain name of your company followed by the name of the app For example if you are developing an app called MyApp and the URL for your company is www mycompany com then your Bundle identifier would be entered as com mycompany MyApp If you would like

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

  • The Basics of Objective-C Programming - Techotopia
    These operators all return a Boolean BOOL true 1 or false 0 result depending on the result of the comparison These operators are binary operators in that they work with two operands Comparison operators are most frequently used in constructing program flow control logic For example an if statement may be constructed based on whether one value matches another if x y Perform task The result of a comparison may also be stored in a BOOL variable For example the following code will result in a true 1 value being stored in the variable result BOOL result int x 10 int y 20 result x y Clearly 10 is less than 20 resulting in a true evaluation of the x y expression The following table lists the full set of Objective C comparison operators Operator Description x y Returns true if x is equal to y x y Returns true if x is greater than y x y Returns true if x is greater than or equal to y x y Returns true if x is less than y x y Returns true if x is less than or equal to y x y Returns true if x is not equal to y Objective C also provides a set of so called logical operators designed to return boolean true and false In practice true equates to 1 and false equates to 0 These operators both return boolean results and take boolean values as operands The key operators are NOT AND OR and XOR The NOT operator simply inverts the current value of a boolean variable or the result of an expression For example if a variable named flag is currently 1 true prefixing the variable with a character will invert the value to 0 false bool flag true variable is true bool secondFlag secondFlag flag secondFlag set to false The OR operator returns 1 if one of its two operands evaluates to true otherwise it returns 0 For example the following example evaluates to true because at least one of the expressions either side of the OR operator is true if 10 20 20 10 NSLog Expression is true The AND operator returns 1 only if both operands evaluate to be true The following example will return 0 because only one of the two operand expressions evaluates to true if 10 20 20 10 NSLog Expression is true The XOR operator returns 1 if one and only one of the two operands evaluates to true For example the following example will return 1 since only one operator evaluates to be true if 10 20 20 10 System Console WriteLine Expression is true If both operands evaluated to be true or both were false the expression would return false Objective C uses something called a ternary operator to provide a shortcut way of making decisions The syntax of the ternary operator also known as the conditional operator is as follows condition true expression false expression The way this works is that

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



  •