Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Workshop

Quiz

1. An NSDate instance stores only a date. True or false?

2. The bar button item and flexible space item are two separate things. True or false?

3. Picker views can display images using the pickerView:titleForRow:forComponent method. True or false?

Answers

1. False. An instance of NSDate stores an “instant in time”—meaning a date and time.

2. False. The flexible space is just a special configuration of the bar button item.

3. False. The pickerView:viewForRow:forComponent:reusingView method must be implemented to display images within a picker.

Activities

1. Update the dateCalc project so that the program automatically sets the picker to the current date when it is loaded. You’ll need to use the setDate:animated method to implement this change.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint