I am new in ios development, so i don’t know this question is correct or not.
I want to create a uibutton from a separate uiview class in view based application template.
if anybody know ,please clear my question.
I am new in ios development, so i don’t know this question is correct
Share
That’s pretty easy to do. This code snippet should help;
There are a few things to note. I have a rollDataViewFPO (FPO means “for position only”) in my xib. I use the FPO frame for positioning the object I just loaded. This way I can position it my xib, not my code.
Also note that I call my own initWithType method. My TiltData objects can be used to show Roll or Pitch data, and I need to tell them what type they are.