如何修复网格中的重叠?

时间:2014-04-16 11:23:30

标签: ios objective-c

正如您在下面的屏幕截图中看到的那样,第二行中的框与第一行中的框重叠。我尝试了很多替代品,但迄今为止都没有。

这是截图

enter image description here

我放置方框的代码,

UIButton *btnWordBox = [[UIButton alloc]initWithFrame:CGRectMake(nUpWidth*26+(316-26*WordCount)/2, nRowHeight, 26, 35)];

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

试试这个

UIButton *btnWordBox = [[UIButton alloc]initWithFrame:CGRectMake(nUpWidth*26+(316-26*WordCount)/2, nRowHeight+20, 26, 35)];
相关问题