navigationbar默认的线该如何去掉

 我来答
匿名用户
2014-11-26
展开全部
读读这篇文档你就明白了
barStyle

The appearance of the navigation bar.

@property(nonatomic, assign) UIBarStyle barStyle

Discussion

See UIBarStyle for possible values. The default value is UIBarStyleDefault.

It is permissible to set the value of this property when the navigation bar is being managed by a navigation controller object.

Availability

Available in iOS 2.0 and later.

Related Sample Code

NavBar

Declared In

UINavigationBar.h

UIBaselineAdjustment

Vertical adjustment options.

typedef enum {
UIBaselineAdjustmentAlignBaselines,
UIBaselineAdjustmentAlignCenters,
UIBaselineAdjustmentNone,
} UIBaselineAdjustment;
Constants

UIBaselineAdjustmentAlignBaselines
Adjust text relative to the position of its baseline.

Available in iOS 2.0 and later.

Declared in UIStringDrawing.h.

UIBaselineAdjustmentAlignCenters
Adjust text based relative to the center of its bounding box.

Available in iOS 2.0 and later.

Declared in UIStringDrawing.h.

UIBaselineAdjustmentNone
Adjust text relative to the top-left corner of the bounding box. This is the default adjustment.

Available in iOS 2.0 and later.

Declared in UIStringDrawing.h.

Discussion

Baseline adjustment options determine how to adjust the position of text in cases where the text must be drawn using a different font size than the one originally specified. For example, with the UIBaselineAdjustmentAlignBaselines option, the position of the baseline remains fixed at its initial location while the text appears to move toward that baseline. Similarly, the UIBaselineAdjustmentNone option makes it appear as if the text is moving upwards towards the top-left corner of the bounding box.
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式