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".
  • A watchOS 2 WatchKit Inline Notification Text Reply Tutorial - Techotopia
    uses this configuration when registering the notification Compile and run the CustomNotifyApp WatchKit App and once the updated WatchKit app has installed on the Apple Watch or Simulator launch the companion iOS app and tap on either the Snow or Rain button Immediately lock the screen on the iPhone and make sure that the Apple Watch screen is active After the delay has elapsed the notification should appear on the display as shown in Figure 35 1 Note that in addition to the Dismiss button the Reply action button now also appears within the notification Figure 35 1 Configuring Text Input Suggestions In order to obtain a list of input suggestions a call will be made by the WatchKit framework to the suggestionsForResponseToActionWithIdentifier method of the notification controller class This method is passed the notification category identifier and the notification object and expects in return an array of String objects containing the suggested text to be displayed in the text input screen Locate the NotificationController swift file in the Project Navigator panel and add the suggestionsForResponseToActionWithIdentifier method so that it reads as follows override func suggestionsForResponseToActionWithIdentifier identifier String forLocalNotification localNotification UILocalNotification inputLanguage String String let suggestions Bring an Umbrella Pack Snow Gear return suggestions Repeat the previous steps to install the WatchKit app and trigger the notification from the iOS app When the notification appears on the Apple Watch or Simulator tap the Reply button and note that the suggested input options are listed and available for selection Figure 35 2 Handling the Text Input Action The final task in implementing text input with a notification is to handle the input once it has been submitted by the user When text has been input for a local notification the handleActionWithIdentifier forLocalNotification withResponseInfo method of the extension delegate will be called

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


  • WatchOS 2 App Development Essentials - Techotopia
    Options Application Context Mode User Information Transfer Mode File Transfer Mode Interactive Messaging Mode WatchConnectivity Session Creation Obtaining Session State Information The watchDirectoryURL Property Sending and Receiving Application Context Data Sending and Receiving User Information Data Transferring Files Sending and Receiving Interactive Messages Summary A watchOS 2 WatchConnectivity Messaging Tutorial About the Project Creating the Project Enabling Audio Background Mode Designing the iOS App User Interface Establishing Outlets and Actions Initializing Audio Playback Implementing the Audio Control Methods Initializing the iOS App Watch Connectivity Session Designing the WatchKit App Scene Initializing the WatchKit App Connectivity Session Sending the Message to the iOS app Handling the Message in the iOS app Testing the Application An Overview of watchOS 2 WatchKit Glances WatchKit Glances The Architecture of a WatchKit Glance Adding a Glance During WatchKit App Creation Adding a Glance to an Existing WatchKit App WatchKit Glance Scene Layout Templates Passing Context Data to the WatchKit App A watchOS 2 WatchKit Glance Tutorial About the Glance Scene Adding the Glance to the Project Designing the Glance Scene Layout Establishing Outlet Connections Adding Data to the Glance Interface Controller Storing and Retrieving the Currently Selected Table Row Passing Context Data to the WatchKit App A watchOS 2 WatchKit Context Menu Tutorial An Overview of WatchKit Context Menus Designing Menu Item Images Creating a Context Menu in Interface Builder Adding and Removing Menu Items in Code Creating the Context Menu Example Project Designing the WatchKit App User Interface Designing the Context Menu Establishing the Action Connections Testing the Context Menu App Working with Images in WatchKit and watchOS 2 Displaying Images in WatchKit Apps Images Originating in the WatchKit Extension Understanding Named Images Adding Images to a WatchKit App Compressing Large Images Specifying the WKInterfaceImage Object Dimensions in Code Displaying Animated Images Template Images and Tinting A watchOS 2 WatchKit Animated Image Tutorial Creating the Animation Example Project Designing the Main Scene Layout Adding the Animation Sequence Images Creating and Starting the Animated Image A watchOS 2 WatchKit Dynamic Layout and Animation Tutorial Changing the Position of an Interface Object Changing the Size of an Interface Object Setting the Visibility of an Interface Object Animating Interface Changes An Animation Example Designing the User Interface Performing the Layout Changes and Animation Testing the Animation Working with Fonts and Attributed Strings in watchOS 2 Dynamic Text and Text Style Fonts Using Text Style Fonts in Code Understanding Attributed Strings Using System Fonts A watchOS 2 App Custom Font Tutorial Using Custom Fonts in WatchKit Downloading a Custom Font Creating the Custom Font Project Designing the WatchKit App Scene Adding the Custom Font to the Project Selecting Custom Fonts in Interface Builder Using Custom Fonts in Code An Introduction to the watchOS 2 WatchKit WKInterfacePicker Object An Overview of the WKInterfacePicker Object Adding a Picker Object to a Storyboard Scene Understanding Picker Object Attributes Understanding Picker Object Styles Creating Picker Item Objects Setting the Currently Selected Item Coordinating Animations Requesting Focus for the Picker Object Enabling and

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

  • Pages that link to "WatchOS 2 App Development Essentials" - Techotopia
    Animation Tutorial links An Introduction to the watchOS 2 WatchKit WKInterfacePicker Object links A watchOS 2 WatchKit Picker Tutorial links A WatchKit WKInterfacePicker Coordinated Animation Example links Playing Movies and Audio on watchOS 2 using the WKInterfaceMovie Class links A watchOS 2 WatchKit Audio Recording and Playback Example links WatchOS 2 Apps An Overview links Building an Example watchOS 2 WatchKit App links An Overview of the watchOS 2 App Architecture links An Example Interactive watchOS 2 App links An Overview of WatchKit Tables in watchOS 2 links A watchOS 2 WatchKit Table Tutorial links Implementing watchOS 2 WatchKit Table Navigation links WatchOS 2 Page based User Interfaces and Modal Interface Controllers links A watchOS 2 WatchKit Page based Interface Tutorial links Handling User Input in a watchOS 2 WatchKit App links An Introduction to Watch Connectivity in watchOS 2 links An Overview of watchOS 2 WatchKit Glances links A watchOS 2 WatchKit Glance Tutorial links A watchOS 2 WatchKit Context Menu Tutorial links Working with Images in WatchKit and watchOS 2 links A watchOS 2 WatchKit Animated Image Tutorial links Working with Fonts and Attributed Strings in watchOS 2 links A watchOS 2 App Custom Font Tutorial links Sharing

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

  • WatchOS 2 App Development Essentials - Techotopia
    and Receiving User Information Data Transferring Files Sending and Receiving Interactive Messages Summary A watchOS 2 WatchConnectivity Messaging Tutorial About the Project Creating the Project Enabling Audio Background Mode Designing the iOS App User Interface Establishing Outlets and Actions Initializing Audio Playback Implementing the Audio Control Methods Initializing the iOS App Watch Connectivity Session Designing the WatchKit App Scene Initializing the WatchKit App Connectivity Session Sending the Message to the iOS app Handling the Message in the iOS app Testing the Application An Overview of watchOS 2 WatchKit Glances WatchKit Glances The Architecture of a WatchKit Glance Adding a Glance During WatchKit App Creation Adding a Glance to an Existing WatchKit App WatchKit Glance Scene Layout Templates Passing Context Data to the WatchKit App A watchOS 2 WatchKit Glance Tutorial About the Glance Scene Adding the Glance to the Project Designing the Glance Scene Layout Establishing Outlet Connections Adding Data to the Glance Interface Controller Storing and Retrieving the Currently Selected Table Row Passing Context Data to the WatchKit App A watchOS 2 WatchKit Context Menu Tutorial An Overview of WatchKit Context Menus Designing Menu Item Images Creating a Context Menu in Interface Builder Adding and Removing Menu Items in Code Creating the Context Menu Example Project Designing the WatchKit App User Interface Designing the Context Menu Establishing the Action Connections Testing the Context Menu App Working with Images in WatchKit and watchOS 2 Displaying Images in WatchKit Apps Images Originating in the WatchKit Extension Understanding Named Images Adding Images to a WatchKit App Compressing Large Images Specifying the WKInterfaceImage Object Dimensions in Code Displaying Animated Images Template Images and Tinting A watchOS 2 WatchKit Animated Image Tutorial Creating the Animation Example Project Designing the Main Scene Layout Adding the Animation Sequence Images Creating and Starting the Animated Image A watchOS 2 WatchKit Dynamic Layout and Animation Tutorial Changing the Position of an Interface Object Changing the Size of an Interface Object Setting the Visibility of an Interface Object Animating Interface Changes An Animation Example Designing the User Interface Performing the Layout Changes and Animation Testing the Animation Working with Fonts and Attributed Strings in watchOS 2 Dynamic Text and Text Style Fonts Using Text Style Fonts in Code Understanding Attributed Strings Using System Fonts A watchOS 2 App Custom Font Tutorial Using Custom Fonts in WatchKit Downloading a Custom Font Creating the Custom Font Project Designing the WatchKit App Scene Adding the Custom Font to the Project Selecting Custom Fonts in Interface Builder Using Custom Fonts in Code An Introduction to the watchOS 2 WatchKit WKInterfacePicker Object An Overview of the WKInterfacePicker Object Adding a Picker Object to a Storyboard Scene Understanding Picker Object Attributes Understanding Picker Object Styles Creating Picker Item Objects Setting the Currently Selected Item Coordinating Animations Requesting Focus for the Picker Object Enabling and Disabling a Picker Object Responding to Picker Changes A watchOS 2 WatchKit Picker Tutorial Creating the Picker Project Designing the WatchKit App Scene Implementing the Picker List Items Implementing the Action

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

  • Start Here iOS 7 - Techotopia
    the form of iPhones and iPads The fact is the technology landscape has changed dramatically in recent years and if you aren t writing apps for iOS yet you probably should think about starting The goal of this book is to get you up to speed on both iOS development in general and the new features of the iOS 7 SDK How you make use of this book will depend to a large extent on whether you are new to iOS development or have worked with iOS 6 and need to get up to speed on the features of iOS 7 Rest assured however that the book is intended to address both category of reader For New iOS Developers If you are entirely new to iOS development then the entire contents of the book will be relevant to you Beginning with the basics this book provides an outline of the steps necessary to set up an iOS development environment An introduction to the architecture of iOS 7 and programming in Objective C is provided followed by an in depth look at the design of iOS applications and user interfaces More advanced topics such as file handling database management in app purchases graphics drawing and animation are also covered as are touch screen handling gesture recognition multitasking iAds integration location management local notifications camera access and video and audio playback support Other features are also covered including Auto Layout Twitter and Facebook integration event reminders App Store hosted in app purchase content collection views and much more New features of iOS 7 are also covered including Sprite Kit based game development local map search and user interface animation using UIKit dynamics The aim of this book therefore is to teach you the skills necessary to build your own apps for iOS 7 Assuming you are ready to download the iOS 7 SDK and Xcode have an Intel based Mac and some ideas for some apps to develop you are ready to get started eBookFrenzy com Purchase the fully updated iOS 9 Swift 2 Xcode 7 edition of this book in eBook 12 99 or Print 39 99 format iOS 9 App Development Essentials Print and eBook ePub PDF Kindle edition contains 105 chapters For iOS 6 Developers If you have already read the iPhone or iPad editions of iOS 6 Development Essentials or have experience with the iOS 6 SDK then you might prefer to go directly to the new chapters in this iOS 7 edition of the book All chapters have been updated to reflect the changes and features introduced as part of iOS 7 and Xcode 5 Chapters included in this edition that were not contained in the previous edition or have been significantly rewritten for iOS 7 and Xcode 5 are as follows Testing Apps on iOS 7 Devices with Xcode 5 Working with iOS 7 Auto Layout Constraints in Interface Builder An iOS 7 Auto Layout Example iOS 7 UIKit Dynamics An Overview An iOS 7 UIKit

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

  • Joining the Apple iOS 7 Developer Program - Techotopia
    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 Reminders and In App Purchasing 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 eBookFrenzy com Purchase the fully updated iOS 9 Swift 2 Xcode 7 edition of this book in eBook 12 99 or Print 39 99 format iOS 9 App Development Essentials Print and eBook ePub PDF Kindle edition contains 105 chapters 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 in the Registered Apple Developer package 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 iOS 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

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

  • Installing Xcode 5 and the iOS 7 SDK - Techotopia
    for iOS If you have an older PowerPC based Mac then you will need to purchase a new system before you can begin your iOS app development project If you are unsure of the processor type inside your Mac you can find this information by clicking on the Apple menu in the top left hand corner of the screen and selecting the About This Mac option from the menu In the resulting dialog check the Processor line Figure 3 1 illustrates the results obtained on an Intel based system If 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 iOS app development In addition the iOS 7 SDK with Xcode 5 environment requires that the version of Mac OS X running on the system be version 10 8 or later If the About This Mac dialog does not indicate that Mac OS X 10 7 4 or later is running click on the Software Update button to download and install the appropriate operating system upgrades Figure 3 1 Installing Xcode 5 and the iOS 7 SDK The best way to obtain the latest versions of Xcode and the iOS SDK is to download them from the Apple Mac App Store Launch the App Store on your Mac OS X system and enter Xcode into the search box and click on the Free button to initiate the installation The download is over 1 6GB in size and may take a number of hours to complete depending on the speed of your internet connection Starting Xcode Having successfully installed the SDK and Xcode the next step is to launch it so that we can write and then create a sample iOS 7 application To start

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

  • Creating a Simple iOS 7 App - Techotopia
    icons the small images the user selects on the device screen to launch the application and launch screen images displayed to the user while the application loads for the application In addition to the General screen tabs are provided to view and modify additional settings consisting of Capabilities 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 project settings 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 iOS 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 storyboard filename extension This is an Interface Builder storyboard save file and the file we are interested in for our HelloWorld project is named Main storyboard 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 4 5 Figure 4 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 if it is not already displayed This is achieved by selecting the right hand button in the View section of the Xcode toolbar Figure 4 6 The right hand panel once displayed will appear as illustrated in Figure 4 7 Figure 4 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 Options are also provided to display quick help the Identity Inspector Attributes Inspector Size Inspector and Connections Inspector Before proceeding take some time to review each of these selections to gain some familiarity with the configuration options each provides Throughout the remainder of this book extensive use of these inspectors will be made The lower section of the panel may default to displaying the file template library Above this panel is another toolbar containing buttons to display other categories Options include frequently used code snippets to save on typing when writing code the Object Library and the Media Library For the purposes of this tutorial we need to display the Object Library so click on the appropriate toolbar button represented by the three dimensional cube This will display the UI components that can be used to construct our user interface Move the cursor to the line above the lower toolbar and click and drag to increase the amount of space available for the library if required The layout of the items in the library may also be switched from a single column of objects with descriptions to multiple columns without descriptions by clicking on the option located in the bottom left hand corner of the panel and to the left of the search box Changing Component Properties With the property panel for the View selected in the main panel we will begin our design work by changing the background color of this view Start by making sure the View is selected and that the Attributes Inspector View Utilities Show Attributes Inspector is displayed in the right hand panel Click on the white rectangle next to the Background label to invoke the Colors dialog Using the color selection tool choose a visually pleasing color and close the dialog You will now notice that the view window has changed from white to the new color selection eBookFrenzy com Purchase the fully updated iOS 9 Swift 2 Xcode 7 edition of this book in eBook 12 99 or Print 39 99 format iOS 9 App Development Essentials Print and eBook ePub PDF Kindle edition contains 105 chapters Adding Objects to the User Interface The next step is to add a Label object to our view To achieve this either scroll down the list of objects in the library panel to locate the Label object or as illustrated in Figure 4 8 enter Label into the search box beneath the panel Figure 4 8 Having located the Label object click on it and drag it to

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



  •