objective-ccocoa-touchuipagecontroliphone-sdk-4.1

UIPageControl : How to dynamically load controls in View in iPhone SDK?


I am making an iPhone app which has a requirement to implement the UIPageControl.

I have referred to many tutorials but all of them have added static data to view. I want to dynamically add buttons to the view when the new view is swiped in.

What should be done?


Solution

  • You can dynamically add new items to UIView, using addSubview/removeFromSuperview methods.