iOS Developer Library

Developer

iOS 7 Design Resources UIKit User Interface Catalog

Download PDF

Web View

Web View Attributes Inspector

image: ../Art/uiwebview_attributes_inspector.pdf

Data Detection and Sizing

Scaling

Scales Page to Fit

Whether the view resizes the webpage to fit the view bounds.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

autoresizesSubviews

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

autoresizesSubviews

YES

Detection

Links

Whether the view detects hyperlinks in the webpage.

Access: dataDetectorTypes.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

web_view.dataDetectorTypes &= ~UIDataDetectorTypeLink

image: ../Art/user_interface_checkbox-selected.pdf Selected

web_view.dataDetectorTypes |= UIDataDetectorTypeLink

Addresses

Whether the view detects addresses in the webpage.

Access: dataDetectorTypes.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

web_view.dataDetectorTypes &= ~UIDataDetectorTypeAddress

image: ../Art/user_interface_checkbox-selected.pdf Selected

web_view.dataDetectorTypes |= UIDataDetectorTypeAddresses

Phone Numbers

Whether the view detects phone numbers in the webpage.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

web_view.dataDetectorTypes &= ~UIDataDetectorTypePhoneNumber

image: ../Art/user_interface_checkbox-selected.pdf Selected

web_view.dataDetectorTypes |= UIDataDetectorTypePhoneNumber

Events

Whether the view detects calendar events in the webpage.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

web_view.dataDetectorTypes &= ~UIDataDetectorTypeCalendarEvent

image: ../Art/user_interface_checkbox-selected.pdf Selected

web_view.dataDetectorTypes |= UIDataDetectorTypeCalendarEvent