首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >向UITableViewController添加字形视图时,添加一些顶部空间

向UITableViewController添加字形视图时,添加一些顶部空间
EN

Stack Overflow用户
提问于 2016-05-27 21:28:29
回答 2查看 38关注 0票数 0

我正在向UITableViewController介绍UINavigationController。当我尝试将glyptodon视图添加到TableViewController中时,我得到了一些顶部空间。

代码语言:javascript
运行
复制
let reminderViewController = ListingRemindersTableTableViewController()
        let navigationController = UINavigationController(rootViewController: reminderViewController)animated: true, completion: nil)
self.navigationController?.presentViewController(navigationController, animated: true, completion: nil)

在"ListingRemindersTableTableViewController“中,在调用服务之后,我添加了glyptodon视图

代码语言:javascript
运行
复制
self.view.glyptodon.show("NoData Found", withAnimation: true)

请大家帮帮我。高级感谢您的解决方案。

EN

回答 2

Stack Overflow用户

发布于 2016-06-16 17:23:41

解决了问题。问题是glyptodonview视图中的帧。用glyptodonview视图中的边界替换frame。

票数 1
EN

Stack Overflow用户

发布于 2016-05-27 21:46:10

看起来您需要在接口生成器的UIViewController中将Adjust Scroll View Insets属性设置为false。

看看这个答案:iOS 7 -- navigationController is setting the contentInset and ContentOffset of my UIScrollView

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37484763

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档