ios - Create controls in UIView at runtime? -


i have 1 uitextfield , button in view.

  1. once button pressed, value in text field need searched fieldid column in core data table , value[comma separated].

  2. separate string comma , assign values array.

  3. a new uiview needs inserted in main screen , place n number[count of array] of labels , textfields , align.

i able 1, 2 , uiview creation.

can me create n number of controls in sub uiview @ runtime?

  for(int i=0;i<self.yourarray.count; i++)   {       uilabel *label = [[uilabel alloc] initwithframe:cgrectmake(10,80*i+60,self.view.frame.size.width-20,60)];       label.text = [yourarray objectatindex:i];       [self.view addsubview:label];   } 

please explain problem more !


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -