p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">1.状态栏 p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51" name="description" />

iOS 各种控件默认高度(图示)

来源:未知 责任编辑:责任编辑 发表时间:2014-02-18 03:22 点击:
p class="article_content" id="article_content"> p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">1.状态栏

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">状态栏一般高度为20像素,在打手机或者显示消息时会放大到40像素高,注意,两倍高度的状态栏在好像只能在纵向的模式下使用。如下图

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">\
 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">用户可以隐藏状态栏,也可以将状态栏设置为灰色,黑色或者半透明的黑色。

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px"> 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">如果需要隐藏状态栏可以使用调用:

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">或者在应用程序文件Info.plist中将UIStatusBarHidden键设为ture。

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px"> 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px"> 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">2.导航栏

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">在纵向模式下导航栏为44像素高,在横向模式下为32像素高,导航栏提供了一个很少用的提示模式,该模式将高度扩展了30像素,在纵向模式下为320*74像素,在横向模式下为480*74像素。

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">要向导航栏添加提示,则设置self.navigationItem.prompt = @"................"。

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px"> 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">\
 

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">3.选项卡  工具栏

p style="text-align: left; line-height: 26px; font-family: Arial; color: rgb(51,51,51); font-size: 14px">选项卡为48像素高,工具栏为44像素高。此两个UI元素通长不用于横向模式。
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • Lexical or Preprocessor Issue 'xxx.h
  • ios学习笔记(二)xcode 4.3.2下实现基本交互
  • ios版本的helloworld
  • iphone(object-c) 内存管理(3) 有效的内存管理 前半部分
  • ios学习笔记(一)xcode 4.3.2下创建第一个ios项目
  • IOS类似iphone通讯录TableView的完整demo【附源码】
  • UITableView一些方法
  • [iPhone中级]iPhone团购信息客户端的开发 (二)
  • 如何为Iphone应用创建启动界面
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1