简体   繁体   中英

UITableView Causing Image to Enlarge

So I have a UITableView inside of a UIViewController . Without the tableView, the simulator looks like this:

在此处输入图片说明

However when the Table View is connected it looks like this:

在此处输入图片说明

with an error of:

2015-03-19 02:08:56.086 CPX[55379:5813118] Warning: A long-running operation is being executed on the main thread. 
 Break on warnBlockingOperationOnMainThread() to debug.
2015-03-19 02:08:56.482 CPX[55379:5813118] Failed to set (autostart) user defined inspected property on (UIView): [<UIView 0x7f8fa8da28c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key autostart.
2015-03-19 02:08:56.483 CPX[55379:5813118] Failed to set (animation) user defined inspected property on (UIView): [<UIView 0x7f8fa8da28c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animation.



Why is this happening, and how can I prevent the resizing of the image?

Thankyou for your help!

我想您的自动调整大小或自动布局类在情节提要中或xib中被检查过了,这导致了问题,您可以简单地取消选中它并根据不同的iphone尺寸处理框架。

you can prevent resizing of Image using Auto-Layout Constraints, i suggest that just add height and width with top and trailing space if your image has fix size otherwise you have to add constraints as per your relative views like if you won't your image to extends height and width according to another view then add constraints relative that view.

if you can show your other view than i can suggest more specifically which constraints you have to add.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM