【问题标题】:Add Hairline border to the bottom of UiToolbar in ios7 [duplicate]在ios7中将细线边框添加到UiToolbar的底部[重复]
【发布时间】:2014-04-19 04:13:07
【问题描述】:

我想去掉顶部的1px细线显示,并在UiToolbar上将1px细线添加到底部。

@property (strong, nonatomic) IBOutlet UIToolbar *uiToolbar;

// This removes the top hairline
uiToolbar.clipsToBounds = YES;

// How do I add a bottom hairline? (Should also resize automatically from portrait and landscape.)

谢谢

【问题讨论】:

  • 你好mownier,你是对的。我没想到 UiToolbar 是 UiView 的子类(所以我所有的谷歌搜索都不起作用)如果你把它写成答案,我会把它标记为正确的。干杯。
  • 嗨@user1256378,我写我的评论作为答案。乐意效劳。干杯!

标签: ios7 uitoolbar


【解决方案1】:

从 -positionForBar: 委托方法返回 UIBarPositionTop 也将实现您正在寻找的结果。

iOS7 UIStatusBar blur not correct

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-06
    • 1970-01-01
    • 2012-04-19
    • 2015-01-04
    • 2021-03-01
    • 2013-02-18
    相关资源
    最近更新 更多