concept app in category ios

This is an excerpt from Manning's book Hello! iOS Development.
You’ve now seen most of the major pieces of iPhone development and have used Xcode and Interface Builder to draw, build, and run your first application. Making apps is a constant iteration of this edit-build-run cycle. You’ll be doing it over and over, and eventually you’ll have completed apps. Each time through the cycle, you’ll learn a little more about how to use the tools.
Let’s look at one of the built-in apps on your iPhone. The easiest to understand is Calculator. Play with the app a little, and think about the kinds of things that are happening in it.
The app starts by displaying a grid of buttons that have numbers and symbols on them. It also has a result area that starts with the number 0 in it. Let’s call the whole area of the screen the calculator view. It uses button views to draw buttons and a result view to show the result. Each view—the calculator view, button views, and result views—have to be able to draw themselves on the screen. To do that, they all need to know their position and size. Button views also need to know what text to show and what color they are. Position, size, content (such as text), and color are common things that views need to know.
Turned 90 degrees, the app is still a calculator. There’s no reason why the models and controllers you created can’t be reused. By making sure the view of the app is separate, you can create an alternate view to use in landscape. Separation allows you to vary each part independently.
A lot of apps come with the phone, so take a look at them. If you’re bored, download a game and goof off for an hour (we mean, figure out how MVC is used in it). When you’re done, take the test in the next section.

This is an excerpt from Manning's book Hello Swift!: iOS app programming for kids and other beginners.
What is an app?
Your code needs to make decisions, too. Imagine an app that can tell you whether you need an umbrella. This app checks to see whether it’s raining. If so, the app outputs the information that you need an umbrella.
In this app-exercise, I teach you how to create an app that ranks numbers as Gold, Silver, and Bronze (figure 5.9). You enter three numbers, and the app lists them in the order greatest to least.
Listing 11.5. The final code for the Load Save app, Part 2
import UIKit import SwiftoFile class ViewController: UIViewController { @IBOutlet var writeField: UITextView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } @IBAction func save() { let fileContentManaging = SwiftoFile("infoSave.txt") fileContentManaging.write(content: writeField.text!, overwriteFile: true, appendNewline: false) } @IBAction func load() { let fileContentManaging = SwiftoFile("infoSave.txt") writeField.text = fileContentManaging.read() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be re-created. } }

This is an excerpt from Manning's book iOS Development with Swift.
Sometimes, when you’re working on an application, you might make use of test data to get an idea of how the app will look in the real world after the user enters real data. Because this app is finished now, it’s time to remove this test data. See figure 1.18 to see how the first scene of the app looks with the test data, and how you want it to look when it’s published to the App Store.
Run sizeToFit on the label, and run the app again. label.sizeToFit()
But, wait! Before you do, it’s a good idea to get beta testers to give your app a good run-through. Their feedback will be invaluable—not only for finding obscure bugs, but also to provide you with a more subjective perspective of user experience with the app.
Archive the app— Similar to uploading to iTunes Connect, you’ll want to build an archive of your app. Select Product > Archive in Xcode with Generic iOS Device or your iOS device selected as the current scheme. After archiving the app, Xcode will automatically open the Organizer. Instead of uploading to iTunes Connect here, you want to generate a file to distribute to your beta testers. Export the app— Select your Bookcase app’s archive and select the Export button. Select Save for Ad Hoc Deployment. Choose your team and select Export, choosing a local folder to export to (see figure 16.13). Distribute the app— Great, you should now have a file with extension .ipa—that’s your app! It’s a compressed file like a zip, but with a .ipa extension. You can now distribute this file to your testers, via email, for example. A tester can then open the app in iTunes on their Mac and install it to their device. After testing your app, ask them to send you their feedback.
If you’ve been following along with distributing your app via TestFlight, you should already have set up an app record in iTunes Connect. If not, you need to go back and do this step before distributing an app to the App Store.

This is an excerpt from Manning's book Anyone Can Create an App: Beginning iPhone and iPad programming.
In this chapter you’ll add a label and a button to the app and write some code. The code you write will make the button change what the label displays. You’re also going to change how the label looks by implementing cosmetic changes.
Now run the app to make sure it looks okay (click the right arrow at top left in the Xcode window). Your Simulator should look similar to figure 5.2.

This is an excerpt from Manning's book iOS 7 in Action.
On iOS devices, when browsing the web through Safari, you flick the screen upward with the tips of your fingers to scroll down. To go to the next photo in the Photos app, you flick to the left. When you use the Maps app, you pinch the screen to zoom outward. To zoom in, you could pinch outward or double-tap with one finger. If you want to “click” a button, you tap it. Other gestures allow you to interact with apps to reveal options for a particular item. For example, the Mail app displays a context menu after swiping to the left on an email.
App developers also have to take into account that everything needs to be displayed on a small 3.5”–4” device. You’re limited with screen real estate, which requires you to present information to your users in a reasonable manner. You also need to take into account expected usage patterns and interactions. Almost everybody who uses apps on their phone uses them for short periods of time. You not only have to limit what’s presented on a screen of this size but also limit the number of interactions required to accomplish a particular task. It’s difficult to make something simple, but this type of design interaction can make your apps more successful than those of your competitors.
[view setInitialText:@"Boom! Tweeting this from an app I created while reading iOS in Action! "]; [view addURL:[NSURL URLWithString:@"http://manning.com"]];
In iOS, applications are not allowed to perform continuous operations in the background. But what if something interesting does happen and you want to let your users know about that even if the app is closed? Say you create an application for sending short messages to other people. Chances are the user is not using your application when a friend asks him to have some margaritas by the beach.
Push notifications are the solution for these issues; they’re a great way for apps to interact with users at any time. When an event of interest occurs, you send a specially crafted message to a user’s device, and they’ll see a message and hear an alert. This is similar to what happens when you get an SMS or a new email on your iPhone.
In chapter 9 you learned how to establish communication with remote computers. Those communications were always in the form of making a request and receiving a response. In that kind of communication, there’s always a one-to-one relationship between requests and responses. In other words, you get only what you ask for, when you ask for it. When doing push notifications, the app doesn’t make requests. It subscribes to certain events, and those events are pushed to the app whenever they occur. A neat analogy to help you understand this mechanism is the traditional mail system. Letters arrive at your house whenever someone sends you something; you don’t have to go to the post office every hour asking if there is something new. Letters will arrive even if you are not at home, and you’ll eventually get them once you’re there. Push notifications work the same way. Instead of doing a request asking for new messages, emails, offers, or whatever your app does, the app subscribes to a push notification service, and when something new is available, it’ll get a notification. Figure 13.2 shows the difference between a traditional request/response communication and push notifications.
To be able to send notifications you need to create some logic outside your iOS app. In short, you’ll need to set up a computer with internet connectivity that will store device tokens of your users and, when needed, connect to the APNs and send push notifications. Later in the chapter we’ll show some examples for the server side of the app. Those examples will be written in the Python language. We chose Python because its simple, unintimidating syntax will allows you to understand the concept even if you’ve never seen Python before. Figure 13.3 shows the device token flow. Steps 1 and 2 are done by the operating system, and steps 3 and 4 are controlled by your application.
Figure 13.3. Device token flow: (1) A connection to the APNs is established by the operating system; (2) a unique device token is assigned; (3) when the app is granted push notification permission by the user, the device token is provided to the app; (4) you send the device token to your servers in order to be able to send notifications to that user later on.
![]()

This is an excerpt from Manning's book iOS in Practice.
Push notification is a big way for an app to live outside of itself. While many apps have a server-side portion, it’s often in support of the app’s use by the user. The server side can be for queries of a database, storing data, or downloading content.
Push notifications allow the app (as the server side) to work even when it’s not running. Reminders, updates, and messages are examples of how the app can be effective even when it’s not running.
Adding in-app purchase to your app requires a few steps, including configuring iTunesConnect, creating a test account for testing, and adding it to your code. Let’s look at these steps in detail.

This is an excerpt from Manning's book iOS 4 in Action: Developing iPhone and iPad Apps.
Among the most notable technical restrictions: you can’t use the code to create plug-ins, nor can you use it to download non-SDK code. It was the latter that apparently spoiled Sun’s original plans to port Java over to the iPhone. You also can use only Apple’s published APIs. In addition, there are numerous privacy-related restrictions, the most important of which is that you can’t log the user’s location without permission. Finally, Apple has some specific application restrictions, including restrictions on apps that incorporate pornography or other objectionable content.
In order for your program to run on iPhones and iPads, you’ll need an Apple certificate, and Apple maintains the right to refuse your cert if it doesn’t like what you’re doing. If you’re planning to write anything that might be questionable, you should probably check whether Apple is likely to approve it first. For example, the most-used third-party software package that isn’t available natively is Flash. This book is going to cover how to develop an app on iPhone or iPad with the iOS SDK. But there’s another way to deliver an application to iPhone or iPad: using HTML5+JavaScript for web apps. We won’t cover web application development in this book.
This chapter will be structured a little differently than ones prior. Rather than going over the Store Kit API, we’ll demonstrate the topics for creating an in-app store by walking through a basic example. We’ll look at how to set up a sandbox testing environment (to mimic selling actual items) and work through how to build the store interface.

This is an excerpt from Manning's book iPhone and iPad in Action: Introduction to SDK Development.
There is no doubt that Apple has completely altered the mobile computing paradigm with its introduction of the iPhone and iPad. A sleek touchscreen interface almost completely devoid of actual buttons physically changed how we interact with our mobile devices. Fluid and dynamic, this screen can represent almost any two-dimensional interface imaginable. This alone might have blown away several previous generations of clunky, incrementally changing smartphone and netbook interfaces. But Apple’s insight into opening up the iPhone OS early on as a platform for an army of independent developers (just like you), who could quickly produce thousands of apps, allowed consumers to customize and personalize their phones, transforming them into something more transcendent and utilitarian than just a phone with some hasty, ill-conceived, add-on applications. The iPhone became a personal computer you can carry in your pocket.
This chapter will be structured a little differently than ones prior. Rather than going over the Store Kit API, we’ll demonstrate the topics for creating an in-app store by walking through a basic example. We’ll look at how to set up a sandbox testing environment (to mimic selling actual items) and work through how to build the store interface.