The application we are about to build does nothing more than detect swipes, both horizontal and vertical. Swipes will display a message across the top of the screen for a few seconds informing you swipe was detected. We are going to define a minimum gesture length in pixels, which is how far the user has to swipe before the gesture counts as a swipe.
Read More...To show how to use custom cells, we’re going to create a new application with another table view, and we,re going to display two lines of information to the user. our application will display the name and color. We’ll display both of those information in the same table cell by adding subviews to the table view cell.
Read More...Defining a custom gesture is tricky. The tricky part is being flexible when defining what constitutes a gesture . In our sample, we’re going to define a gesture shaped like a check mark.
Read More...Detecting Pinch is pretty easy. First, when the gesture begins, we check to make sure there are two touches,because pinches are two-finger gestures. If there are two , we store the distance between them. Then as the gesture progresses, we keep checking the distance between the user’s fingers, and if the distance increases or discreases more than a certain amount , we know there’s been a pinch.
Read More...Let’s look at using pickers that let the user select from a list values. In this example we are going to create an NSArray to hold the values we want to display in the picker.
Read More...This is the example of a Picker with two components or wheels, and each wheel will be independent of the other wheel. The left wheel will have a list of sandwich fillings, and the right wheel will have a selection of bread types.
Read More...We are going to have a little fun with the fifth content view. We’re going to see how to add image data to a picker, write a little game that uses a picker with five components.
Read More...There is one way of handling autorotation, and it’s an option you’ll likely only use in the case of very complex interface. We just design the landscape and portrait views separately and then swap them out when the phone is rotated.
Read More...We are going to write a slightly more complex application, one with two as well as a label. When the user taps either of the buttons, the label’s text changes. This may seem like a rather simplistic example,but it demonstrates the key concepts you will need to master the use of controls in your iphone application.
Read More...We are going to build an application that will take your knowledge of controls to a whole new level. We’ll implemented an image view, a slider, two different text fields,a segmented control, a couple of switches, and an iphone button that looks more like as an iphone button.
Read More...