iOS 7过渡之--控件

Controls are UI elements that users either view (to get information) or interact with (to perform an action). All iOS 7 controls have an updated appearance, and most of them also have different metrics.

Because UIControl inherits from UIView, you can use a control’s tintColor property to tint the control. For more information about tinting views, see Using Tint Color.

By default, system-provided controls support system-defined animations and appearance changes that indicate highlighted and selected states.

Date Picker

A date picker displays components of date and time, such as minutes, hours, days, and years.

The overall size of the date picker is the same in iOS 7 as it is in iOS 6, but the appearance is very different.

iOS 7

image: ../Art/date_picker_7_2x.png

iOS 6

image: ../Art/date_picker_6_2x.png

iOS 7 apps tend to embed date pickers within the content instead of displaying them in a different view. For example, Calendar dynamically expands a table row to let users specify a time without leaving the event-creation view:

image: ../Art/inline_date_picker_2x.png

Contact Add Button

A Contact Add button—that is, a UIButton of type UIButtonTypeContactAdd—lets users add a contact’s information to a text field or other text-based view.

The size and appearance of the Contact Add button have changed in iOS 7.

iOS 7

image: ../Art/contact_add_7_2x.png

iOS 6

image: ../Art/contact_add_6_2x.png

Detail Disclosure Button

A Detail Disclosure button—that is, a UIButton of type UIButtonTypeDetailDisclosure—reveals additional details or functionality related to an item in a table or other view. In iOS 7, the Detail Disclosure button uses the same symbol as the Info button.

The size and appearance of the Detail Disclosure button has changed in iOS 7:

iOS 7

image: ../Art/detail_disclosure_7_2x.png

iOS 6

image: ../Art/detail_disclosure_6_2x.png

When a Detail Disclosure button appears in a table row, tapping elsewhere in the row doesn’t activate the button; instead, it selects the row item or triggers app-defined behavior.

Info Button

An Info button—that is, a UIButton of type UIButtonTypeInfoLight or UIButtonTypeInfoDark—reveals configuration details about an app, sometimes on the back of the current view. In iOS 7, the Info button uses the same symbol as the Detail Disclosure button.

The size and appearance of the Info button have changed in iOS 7.

iOS 7

image: ../Art/info_button_2x.png

iOS 6 (shown in Weather)

image: ../Art/info_weather_6_2x.png

Label

A label displays static text.

By default a label uses the system font, so it looks different in iOS 7 than it does in iOS 6.

iOS 7

image: ../Art/labels_7_2x.png

iOS 6

image: ../Art/labels_6_2x.png

Be sure to use the UIFont method preferredFontForTextStyle to get the text for display in a label.

Page Control

A page control indicates how many views are open and which one is currently visible.

The size and appearance of the page control have changed in iOS 7.

iOS 7 (control shown in Weather)

image: ../Art/page_control_weather_7_2x.png

iOS 6 (control shown in Weather)

image: ../Art/page_control_6_2x.png

Picker

A picker displays a set of values from which a user can choose.

The overall size of a picker is the same in iOS 7 as it is in iOS 6; its appearance and behavior in iOS 7 are similar to the appearance and behavior of the date and time picker.

iOS 7

image: ../Art/picker_7_2x.png

iOS 6

image: ../Art/picker_6_2x.png

Progress View

A progress view shows the progress of a task or process that has a known duration.

The size and appearance of the progress view—shown here in the Mail toolbar—have changed in iOS 7.

iOS 7

image: ../Art/progress_view_7_2x.png

iOS 6

image: ../Art/progress_view_6_2x.png

If you currently use the trackTintColor property to specify a tint for the progress view’s track, the track continues to use this tint in iOS 7. If you set trackTintColor to nil, the track uses the tint of its parent.

Refresh Control

A refresh control performs a user-initiated content refresh—typically, in a table.

The size and appearance of the refresh control have changed in iOS 7.

iOS 7

image: ../Art/refresh_control_7_2x.png

iOS 6

image: ../Art/refresh_control_6.png

Rounded Rectangle Button

The rounded rectangle button has been deprecated in iOS 7. Instead, use the system button—that is, aUIButton of type UIButtonTypeSystem.

iOS 7 system buttons don’t include a bezel or a background appearance. A system button can contain a graphical symbol or a text title, and it can specify a tint color or receive its parent’s color.

iOS 7 system button

image: ../Art/system_button_2x.png

iOS 6 rounded rectangle button

image: ../Art/rounded_rect_button_2x.png

NOTE

In iOS 7, UIButtonTypeRoundedRect has been redefined as UIButtonTypeSystem. An app that uses a rounded rectangle button in iOS 6 automatically gets the system button appearance when it links against iOS 7.

If you need to display a button that includes a bezel, use a button of type UIButtonTypeCustom and supply a custom background image.

Segmented Control

A segmented control is a linear set of segments, each of which functions as a button that can display a different view.

The size and appearance of the segmented control have changed in iOS 7.

iOS 7

image: ../Art/segmented_control_7_2x.png

iOS 6

image: ../Art/segmented_control_6_2x.png

In iOS 7, the segmented control uses a single style, and the segmentedControlStyle property is unused.

Slider

A slider lets users make adjustments to a value or process throughout a range of allowed values.

The size and appearance of the slider have changed in iOS 7.

iOS 7

image: ../Art/slider_7_2x.png

iOS 6

image: ../Art/slider_6_2x.png

iOS 7 continues to use the tints you specify for the minimum and maximum track images and for the thumb, using the properties minimumTrackTintColormaximumTrackTintColor, and thumbTintColor. If you set the minimumTrackColor property to nil, the area uses the tint of its parent; if you set themaximumTrackTintColor or thumbTintColor properties to nil, both areas use their default color.

Stepper

A stepper increases or decreases a value by a constant amount.

The size and appearance of the stepper have changed in iOS 7.

iOS 7

image: ../Art/stepper_7_2x.png

iOS 6

image: ../Art/stepper_6_2x.png

In iOS 7, by default, a stepper treats custom increment and decrement images as template images.

Switch

A switch presents two mutually exclusive choices or states (typically used only in table views).

The size and appearance of the switch have changed in iOS 7.

iOS 7

image: ../Art/switch_7_2x.png

iOS 6

image: ../Art/switch_6_2x.png

iOS 7 continues to use the tints you specify for the on and off—or disabled—states and for the thumb, using the properties onTintColortintColor, and thumbTintColor.

In iOS 7, by default, custom on and off images are ignored.

Text Field

A text field accepts a single line of user input.

The size and appearance of the text field have changed in iOS 7.

iOS 7 (two text fields shown in Maps)

image: ../Art/text_field_7_2x.png

iOS 6 (two text fields shown in Maps)

image: ../Art/text_fields_6_2x.png

Be sure to use the UIFont method preferredFontForTextStyle to get the text for display in a text view.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
东南亚位于我国倡导推进的“一带一路”海陆交汇地带,作为当今全球发展最为迅速的地区之一,近年来区域内生产总值实现了显著且稳定的增长。根据东盟主要经济体公布的最新数据,印度尼西亚2023年国内生产总值(GDP)增长5.05%;越南2023年经济增长5.05%;马来西亚2023年经济增速为3.7%;泰国2023年经济增长1.9%;新加坡2023年经济增长1.1%;柬埔寨2023年经济增速预计为5.6%。 东盟国家在“一带一路”沿线国家中的总体GDP经济规模、贸易总额与国外直接投资均为最大,因此有着举足轻重的地位和作用。当前,东盟与中国已互相成为双方最大的交易伙伴。中国-东盟贸易总额已从2013年的443亿元增长至 2023年合计超逾6.4万亿元,占中国外贸总值的15.4%。在过去20余年中,东盟国家不断在全球多变的格局里面临挑战并寻求机遇。2023东盟国家主要经济体受到国内消费、国外投资、货币政策、旅游业复苏、和大宗商品出口价企稳等方面的提振,经济显现出稳步增长态势和强韧性的潜能。 本调研报告旨在深度挖掘东南亚市场的增长潜力与发展机会,分析东南亚市场竞争态势、销售模式、客户偏好、整体市场营商环境,为国内企业出海开展业务提供客观参考意见。 本文核心内容: 市场空间:全球行业市场空间、东南亚市场发展空间。 竞争态势:全球份额,东南亚市场企业份额。 销售模式:东南亚市场销售模式、本地代理商 客户情况:东南亚本地客户及偏好分析 营商环境:东南亚营商环境分析 本文纳入的企业包括国外及印尼本土企业,以及相关上下游企业等,部分名单 QYResearch是全球知名的大型咨询公司,行业涵盖各高科技行业产业链细分市场,横跨如半导体产业链(半导体设备及零部件、半导体材料、集成电路、制造、封测、分立器件、传感器、光电器件)、光伏产业链(设备、硅料/硅片、电池片、组件、辅料支架、逆变器、电站终端)、新能源汽车产业链(动力电池及材料、电驱电控、汽车半导体/电子、整车、充电桩)、通信产业链(通信系统设备、终端设备、电子元器件、射频前端、光模块、4G/5G/6G、宽带、IoT、数字经济、AI)、先进材料产业链(金属材料、高分子材料、陶瓷材料、纳米材料等)、机械制造产业链(数控机床、工程机械、电气机械、3C自动化、工业机器人、激光、工控、无人机)、食品药品、医疗器械、农业等。邮箱:market@qyresearch.com

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值