开发者

Space between labels when user leave a text field empty

开发者 https://www.devze.com 2023-03-07 10:04 出处:网络
Hi I have some text field which, after a decoding, set some UILabel. The problem is that if the user leave some empty field , I don\'t like to see that space between the labels. I enclose a picture

Space between labels when user leave a text field empty

Hi I have some text field which, after a decoding, set some UILabel. The problem is that if the user leave some empty field , I don't like to see that space between the labels. I enclose a picture for a better understanding. thank开发者_C百科s in advance.


instead of the view below use a uitableview with custom cells Each custom cell having a label ...and add a cell if and only if u have a valid string in a textfeild..set userinteraction=NO and set some backgroung color to match ur view..

just put that string in the uilabel in the custom cell...thats it..

0

精彩评论

暂无评论...
验证码 换一张
取 消