iOS create UILabels dynamically

后端 未结 6 781
甜味超标
甜味超标 2020-12-31 05:54

Sometimes I want my view to contain 5 UILabels, sometimes 3 and sometimes n.

The number of UILabels depends on data that\'s fetched fro

6条回答
  •  爱一瞬间的悲伤
    2020-12-31 06:53

       NSArray *dataArray;
       float xCoordinate=10.0,yCoordinate=10.0,width=100,height=40; 
       float ver_space=20.0;
       for (int i = 0; i 

提交回复
热议问题