Honors Software Design - iOS                                                                    Name -
Learn Objective-C in 6 Days Worksheet #6

Answer the following after reading http://mobile.tutsplus.com/tutorials/iphone/learn-objective-c-day-6/

1. What is a category in Objective-C and how is it similar but yet different from a subclass?

 

2. Write the interface for a NSString category named prepend that includes a method named prependString.

 

 






3. Write the implementation for the category above so that prependString adds the letter 'z' to the front of an NSString.