I have parsed CSV file data and populating in a UITableView. I have five labels and a button in the cell. The labels are showing data appropriately but the button is not visible. I have dragged the button onto the storyboard. I have created a outlet variable also. But still the button is not visible. What could be the reason ?
我已经解析了CSV文件数据并在UITableView中填充。我在单元格中有五个标签和一个按钮。标签正确显示数据,但按钮不可见。我已将按钮拖到故事板上。我也创建了一个出口变量。但是按钮仍然不可见。可能是什么原因 ?
Even when i change the position of my label now and run the app it doesn't change. Does this have something to do with core-data ? Because i have saved my csv data as core-data
即使我现在改变我的标签的位置并运行应用程序它也不会改变。这与核心数据有关吗?因为我已将我的csv数据保存为核心数据
3 个解决方案
#1
0
Hit the runtime UI debugger key when in the considering VC is showing. The button should be above the console panel the second last one. Right now am not in my mac so cant post a screenshot.
在考虑VC的情况下,点击运行时UI调试器密钥。按钮应位于控制台面板上方,倒数第二个。现在我不在我的Mac上,因此无法发布截图。
Hit the button and observe that your button is being drawn beneath some view or your button is being drawn at all. Plz confirm and comment
点击按钮,观察您的按钮是在某个视图下方绘制的,或者按钮正在绘制。 Plz确认并评论
#2
0
I suggest you to apply auto layout constraints for button and labels. I think it will work.
我建议你为按钮和标签应用自动布局约束。我认为它会起作用。
#3
0
REASON: your label is over your button. If you don't use auto layout label width get width of tableView (least the initial position x) and background default to white AUTO when your app running.
原因:你的标签在你的按钮上。如果您的应用程序运行时不使用自动布局标签宽度获取tableView的宽度(最小位置x),背景默认为白色AUTO。
Change in code the label background to 'clear' and button will appear or search the button in the cell and use method 'bringSubviewToFront:'.
将标签背景更改为“清除”并显示按钮,或者搜索单元格中的按钮并使用方法“bringSubviewToFront:”。
BEST SOLUTION? Use auto layout constraints.
最佳方案?使用自动布局约束。
#1
0
Hit the runtime UI debugger key when in the considering VC is showing. The button should be above the console panel the second last one. Right now am not in my mac so cant post a screenshot.
在考虑VC的情况下,点击运行时UI调试器密钥。按钮应位于控制台面板上方,倒数第二个。现在我不在我的Mac上,因此无法发布截图。
Hit the button and observe that your button is being drawn beneath some view or your button is being drawn at all. Plz confirm and comment
点击按钮,观察您的按钮是在某个视图下方绘制的,或者按钮正在绘制。 Plz确认并评论
#2
0
I suggest you to apply auto layout constraints for button and labels. I think it will work.
我建议你为按钮和标签应用自动布局约束。我认为它会起作用。
#3
0
REASON: your label is over your button. If you don't use auto layout label width get width of tableView (least the initial position x) and background default to white AUTO when your app running.
原因:你的标签在你的按钮上。如果您的应用程序运行时不使用自动布局标签宽度获取tableView的宽度(最小位置x),背景默认为白色AUTO。
Change in code the label background to 'clear' and button will appear or search the button in the cell and use method 'bringSubviewToFront:'.
将标签背景更改为“清除”并显示按钮,或者搜索单元格中的按钮并使用方法“bringSubviewToFront:”。
BEST SOLUTION? Use auto layout constraints.
最佳方案?使用自动布局约束。