Sunday, July 12, 2009

iPhone App: Amazing Polygon App - update 1 Slider

Added a slider to facilitate incrementing/decrementing the number of sides in the polygon.



General Process:

  • Create the action method in your Controller to process events from the slider.
  • Add an Outlet to your Controller header file IBOutlet UISlider *slider;.
  • Mark this method with the (IBAction) macro.
  • Bring up your .xib in Interface Builder
  • Add a slider control (UISlider) to the View
  • Make a connection from the slider control to the Controller object...when you release it you will be prompted to select the action to be invoked.
  • Save everything and test it out.

Simple!

No comments:

Post a Comment