草庐IT

fixed-table-layout

全部标签

ios - UINavigationBar 子类上的 “Auto Layout still required after executing -layoutSubviews"

我有一个UINavigationBar子类,我要向其添加一些UIView。我的UIView是根据我在-[UIViewupdateViewConstraints:]中定义的约束进行布局的NSDictionary*views,*metrics;//searchcontainerconstraints[selfaddSubview:self.searchContainer];self.searchContainer.translatesAutoresizingMaskIntoConstraints=NO;views=NSDictionaryOfVariableBindings(_search

ios - 为什么 weak_table_t 在 Objective-C 运行时是 SideTable 的成员?

我正在阅读https://github.com/opensource-apple/objc4的objc代码.在代码中,有一个structSideTable,其中包含对应对象的引用计数和一个weak_table_t。structSideTable{spinlock_tslock;RefcountMaprefcnts;weak_table_tweak_table;SideTable(){memset(&weak_table,0,sizeof(weak_table));}~SideTable(){_objc_fatal("DonotdeleteSideTable.");}voidlock()

jquery - 虚拟键盘中断位置 :fixed elements in iOS

在iOS11的iPhone6Plus上使用Safari和Chrome进行了测试。我有一个带有以下HTML结构和CSS的评论面板:HTML:AddComment...userinnerhtml......commentformhtml...CancelCSS:.highlighter-docked-panel{right:-100%;opacity:0;bottom:85px;z-index:999999;position:fixed;width:300px;}.highlighter-docked-panel.shown{right:0;opacity:1;}面板是body标签的直接子

位置为 :fixed, 的 iOS 移动浏览器滚动问题页面在滚动结束时跳回顶部

我发现iOSMobile上的POSITION:FIXED属性存在许多问题。但它没有解决我的问题。在台式机和Android设备中,完美运行。即使在MacBookAir中也是如此。问题:我有一个position:fixed标题和一个position:relative内容(使用padding-top:height-of-header结盟)。当我快速滚动时,它开始滚动,然后突然跳回页面顶部。但是当我们缓慢滚动时,这个问题并没有出现。这是header的代码.site-header{position:fixed;width:100%;top:0;z-index:9999;}这是主要内容的代码.ma

ios - "Fixed"奇怪的 "unrecognized selector sent to instance"崩溃发生在 iOS8 beta5

我的应用在iOS7上运行良好,但在iOS8上崩溃。我见过关于这个主题的各种问题,但从未找到好的解决方案。我有一个使用UITableViewController的应用程序,UITableViewController有一个SearchDisplayController实例调用m_searchDisplayController。当我第一次点击搜索栏进行搜索时,表格View随后显示结果,搜索栏resignFirstResponder。但我再次点击搜索栏时,应用程序崩溃了:-[MyFavoritesViewController_searchController]:unrecognizedsele

iOS 8 Xcode 6 : App consistently crashes when using top/bottom layout guide for top/bottom constraints

Xcode6beta最近让我很烦。我的Storyboard中有以下View层次结构...当我从“标题View”控制拖动到“View”(反之亦然)时,我只得到“顶部/底部空间到顶部/底部布局指南”选项而不是“顶部/底部空间到容器”。当我选择附加到顶部/底部布局指南时,应用程序通常会崩溃。无论如何强制View从父View而不是布局指南构建约束。或者解决这个问题的最佳方法是什么?!这是我得到的错误:2014-09-0215:38:07.913BundleUp[2183:103534]Theviewhierarchyisnotpreparedfortheconstraint:Whenadded

ios - 在 Storyboard 中使用 AutoLayout 在 Table View Cell 中显示图像

我有一个TableViewCell,里面只有一个ImageView。如何让TableViewCell大小随着我从Instagram的API获取的图像(大小)动态变化?我很难解决,因为基本上我要解决两个变量:来自InstagramAPI的可变尺寸图片(标准分辨率似乎总是至少600+,因此无论手机尺寸如何,始终能够从左向右拉伸(stretch))可变iPhone尺寸(iPhone6、6Plus等)我试过固定所有边,但没用。我试过左右固定以及添加约束BottomSpacetoContainerMargin和TopSpacetoContainerMargin,但这没有用。但我做不对。我确定它是

ios - NSLayoutConstraint 冲突。 UIView-Encapsulated-Layout-Height

我在使用autoLayout时遇到了一些问题。特别是在iOS8中。我已经阅读了网络并在使用UITableViewCell时发现了类似的问题。但是这里我没有使用UITableViewCell并且根本没有UITableView。当它发生时,我只有一个ADBannerView和一个UIWebView需要处理。我在Xcode调试器中收到以下消息:Unabletosimultaneouslysatisfyconstraints.Probablyatleastoneoftheconstraintsinthefollowinglistisoneyoudon'twant.Trythis:(1)look

html - 位置 :fixed "hitboxes" move up in iOS 10 Safari on Plus-sized phones when tab bar is shown

我有一个用作覆盖层的div;我正在使用position:fixed来完成这个。在叠加层中,我有一个按钮。通常情况下,这可以完美运行,但我们发现了一个非常奇怪的错误,该错误似乎出现在加大尺寸iPhone上的iOS10中的Safari中。ButtonThisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregulardiv.Thisistheregu

objective-c - Objective-C : How to highlight a tableView Cell and keep it highlighted when table is reloaded?

真的需要一些建议。我正在尝试做几件事。1)将表格View的第一个单元格设置为在第一次加载表格时突出显示。然后用户可以继续选择/突出显示表格中的其他单元格。如何第一次突出显示单元格?2)对一行中的值进行一些更改后,我将重新加载表格数据,但这会删除单元格上的突出显示。有什么方法可以使单元格在重新加载表格后仍保持突出显示。谢谢!郑 最佳答案 尝试selectRowAtIndexPath:animated:scrollPosition: 关于objective-c-Objective-C:How