i have 2d char array, needed display on view. example have array as-
char chararray[4][10] = {' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ', a,m,i,t ,' ', ' ',' ', ' ',' ',' ', k,u,m,a,r, ' ',' ', 9,8,7,6,5,4,3,2,1,0 } i want display content of array on uiview(not on textview) on action button clicked. , want add observer reload uiview when element of chararray changed.
uiview doesn't provide methods rendering text. should use ui object made purpose uitextview or uilabel.
the alternative draw text within cgcontext: cgcontextshowtextatpoint()
and since using char-array , not object won't able implement observer. should consider creating own class that.
Comments
Post a Comment