UIPageControl : How to dynamically load controls in View in iPhone SDK?
-
13-10-2019 - |
Question
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow