In iOS 6, buttons can have borders or borders.
In iOS 7, there can only be no borders.
In earlier versions of iOS, the button image on the custom bar is automatically treated as a "template image ". (Template image is used as a mask for the final image .) In iOS 7, you can use the followingUIImageAttribute to specify whether to process a custom image as a template image:
UIImageRenderingModeAlwaysOriginal. The image is rendered as is.If you do not specify a processing method for an image, the image uses the default Processing Method of the view containing the image. For example, the tab bar uses the template processing method by default, and the Progress slider uses the original complete rendering processing method.
Note: The template image will be colored based on its parent structure. If you do not want the elements on the bar to be colored, set the UIImageRendering-ModeAlwaysOriginal attribute for the image.
Activity comparisonThe activity menu indicates a function that can respond to the selected content. It can be provided by the system or customized. You can use these functions through the activity View Controller provided by the system. When you click the share button, the activity View Controller will rise from the bottom of the screen.
The system provides two buttons in the activity menu:
Third-party functions always use the second style icon.
If you want to provide a service in your app, you can create a simple, box-like template image. When creating a template image, observe the following guidelines:
The template image on the activity menu should be centered in the area, with a resolution of about 70x70 pixels.
Collection View Comparison
Image View Comparison
In iOS 7, UIImageView contains the color attribute tintColor.
When the image view contains a template image, tintColor is applied to the image.
Comparison of Map views
In iOS 7, you can only use a new class MKOverlayRenderer to create a cover layer on the map view.
To add a 3D appearance to a map view, you only need to assign a camera object to its camera attribute (an instance of MKMapCamera ).
Comparison of Page View ControllerYou can use rolling or rolling page transfer animation.
In iOS 7, two methods are used to specify pageViewControllerPreferredInterfaceOrientationForPresentation.
PageViewControllerSupportedInterfaceOrientations
Comparison of Scroll View
IOS 7 iOS 6
On iOS 7,
Through
AutomaticallyAdjustsScrollViewInsets attributes
To manage the interval between project groups in the rolling view.
Table View ComparisonIOS 7 iOS 6
Text View ComparisonUsing the UIFont preferredFontForTextStyle Method
Obtain the text font displayed in the text view.
Control (Controls) ComparisonControls are special UI elements that can interact with users.
Because UIControl is inherited from UIView,
You can use the tintColor attribute of the control to color them.
Comparison of Date Picker
The iOS 7 app embeds the Date Picker into the content,
Instead of being displayed in a pop-up view.
For example, the calendar application dynamically expands one row of a table,
Embed the Date Picker,
You do not need to leave the current add item view when you specify the time.
Comparison between the new Contact ButtonThe add contact button is a UIButton of the UIButtonTypeContactAdd type.
IOS 7 iOS 6
Detail Button comparisonThe detail expand button is a UIButton of the UIButtonTypeDetailDisclosure type, which is displayed in another table or view.
IOS 7 iOS 6
When the detail Show button appears in a row of the table, clicking other places in the row will not activate the button; only the row will be selected.
Info Button comparisonThe Info button type isUIButtonTypeInfoLightOrUIButtonTypeInfoDark.
IOS 7 iOS 6
Text Label comparison
IOS 7 iOS 6
Use the UIFont method preferredFontForTextStyle to obtain the font displayed on the tag.
Comparison between Page Control and iOS 7 and iOS 6
Picker comparisonIOS 7 iOS 6
Progress View ComparisonIOS 7 iOS 6
Refresh Control comparisonIOS 7 iOS 6
Comparison of Rounded Rectangle buttonsThe rounded rectangle button is discarded in iOS 7.
Replace it with the borderless button of the system.
The corresponding type is UIButton of UIButtonTypeSystem.
IOS 7 system buttons do not include backcorners and background styles.
Note: In iOS 7, UIButtonTypeRoundedRect is redefined as UIButtonType-System.
If you want to display a button that contains a chamfer,
Use the UIButtonTypeCustom button,
This type supports custom background images.
Comparison of Segmented ControlIOS 7 iOS 6
Slider comparisonIOS 7 iOS 6
In iOS 7, the minimum and maximum orbital images can still be colored in the pressed state,
Three attributes are used for operation:
MinimumTrackTintColor
MaximumTrackTintColor
ThumbTintColor
Step per comparison
IOS 7 iOS 6
Switch comparisonIOS 7 iOS 6
In iOS 7, you can continue to use coloring in three states: open, off, and unavailable.
The following three attributes are used for coloring in the pressed state:
OnTintColor
TintColor
ThumbTintColor.
Text Field comparison
IOS 7 iOS 6
Use the preferredFontForTextStyle method of UIFont to obtain and display fonts in text fields.
Comparison of Temporary ViewsActionSheet, AlertView, and ModalView are three temporary views,
ModalView is essentially a type of view.
Note: When a temporary view appears, iOS 7 automatically fades the standard view behind it.
Action List (Action Sheet) Comparison
IOS 7, transparent by default, including buttons without Borders
IOS 7 iOS 6
The dangerous option destructiveButtonTitle in ActionSheet is red by default.
Comparison of the alarm dialog box (Alert)
IOS 7 iOS 6
When there are three buttons in the warning dialog box on iOS 7, the third button will display the next row of the first two buttons
Modal View Comparison
IOS 7 iOS 6
Contact comparison
For iOS 7, the app Icon size is 120x120 pixels (in high resolution)
Operation Bar background coloring using barTintColor or tintColor
UIViewControllerProvides the following attributes:
IOS 7 allows the View Controller to change the style of the system status bar during app running.
Enable this function,
Add the UIViewControllerBasedStatusBarAppearance key to the Info. plist file,
Set the value to YES.
A good way to dynamically change the system status bar is
Override the preferredStatusBarStyle method,
Use an animation module to update the status bar appearance,
And call the setNeedsStatusBarAppearanceUpdate method.
Use Tint Color)
Because UIWindows inherits from UIView, you can specify the coloring by setting the coloring attribute of the form:
Window. tintColor = [UIColor purpleColor];
Important: iOS 7 does not support coloring through the appearance proxy API.
When the warning box (alert) and the action sheet appear,
IOS 7 automatically fades the background View color.
To respond to this color change, the tintColorDidChange method needs to be rewritten to use the subclass of the custom view of tintColor during rendering so that the rendering can be refreshed as appropriate.
Note: In iOS 6, tintColor can be used to color the background color, tab bar, toolbar, search bar, and search bar range in the navigation bar.
In iOS 7, you only need to use the barTintColor attribute to color the background.
Fonts)Dynamic fonts (Dynamic Type) are introduced in iOS 7)
Maximum min font size
UseUIFontClassPreferredFontForTextStyleMethod to generate text,
Instead of directly specifying the font name and size.
Comparison between the Buttons (Bars & Bar Buttons) on the Operation Bar and the BarIn iOS 7, the status bar is transparent,
Other operation columns (navigation bar, tab bar, toolbar, search bar, range selection column under search bar) are translucent.
Generally, you want to see your content behind the operation bar.
Most operation columns blur the hidden content unless you provide a custom background image.
IOS 7 introducesBarPositionAttribute,
It helps you specify when custom background images need to be tiled on the status bar.
ValueUIBarPositionTopAttachedIndicates that the Operation bar is close to the top of the screen,
The background is displayed in the system status bar.
Relative, ValueUIBarPositionTopIndicates that the Operation column is at the top of the current partial content (for example, at the top of the pop-up bubble) and does not provide a background for the status bar.
System Status Bar comparisonUse the constant UIStatusBarStyle to specify whether the black or white style is used:
UIStatusBarStyleDefault displays the black text content.
It is applicable when the content behind the status bar is light.
UIStatusBarStyleLightContent displays white text.
It is suitable when the content behind the status bar is dark.
In some cases,
The background image in the navigation bar and search bar can be stretched up to the back of the status bar.
If there are no other columns under the status bar,
The full screen height is required for the content view.
In iOS 7, through an independent view controller,
You can change the style of the status bar when the app is running.
The implementation method is to add a key to Info. plist.
UIViewControllerBasedStatusBarAppearance,
Set the value to YES.
- Navigation Bar comparison
IOS 7 iOS 6
If you use the UIBarPositionTopAttached style to create a navigation bar background, make sure that the image contains the area of the system status bar.
Specifically, you need an image with a high resolution of 128 (64*2) pixels.
The following table describes how iOS 7 treats variable navigation bar backgrounds of different heights.
Table 5-1 variable background image processing policy
Search Bar & Scope Bar avoid using ultra-high background images to create custom projection under the navigation Bar. This technology does not work in iOS 7, this is because Ultra-high images are expanded up (in the direction of the system status bar), rather than down (below the navigation bar.
If you want to add a projection to the navigation bar, you can create a custom image and then useShadowImageProperty to customize the projection image.
IOS 7 iOS 6
In iOS 7, UISearchDisplayController contains the displaySearchBarInNavigationBar attribute,
In this way, you can put the search bar in the navigation bar, just like in the calendar app:
If you use UIBarPositionTopAttached to create a background image for the search bar, make sure that the height of the image contains the height of the status bar.
You can select the search result range in the range selection column.
Note: The range selection Column cannot appear separately. It must appear under the search bar.
IOS 7 iOS 6
The display types of controls are as follows: "Default appearance" and "named appearance ".
In the control of the. skin file, if the SkinID attribute is not set for the control appearance, it is the default appearance. The named exterior is the exterior of the control with the SkinID attribute set.
Dude, Wang junda...
We usually change the appearance of the form and the properties of the control in the () view. Data Table a B design C Form D Control