objective c - Customize iOS component to make something like pickerview -
how can make picker/slider or whatever view?
it given me designer , have no idea how make it!
this not easy task, there different roads can take, 1 makes more sense me subclass uicontrol
.
uicontrol
subclass of uiview
, main difference it's ready work target-action pattern , gives possibility track touches without adding gesture recognizer. lot of ui interactive elements concrete subclasses of uicontrol
, instance uibutton
. ray's site has interesting tutorial how that.
harder part integrating autolayout programmatically make adapt size of views.
log hard road provides reliable solution, think can achieve similar compositing own uiview subclass using customized slider , labels.
Comments
Post a Comment