November 2013
Intermediate to advanced
576 pages
19h 3m
English
Exclusion Paths (shown in Figure 21.3) allow text to wrap around images or other objects that appear inline. iOS 7 added a simple property in order to add an exclusion path to any text container.
Figure 21.3 Text wrapping around a UIImage using iOS 7’s exclusion paths.
To specify an exclusion path, a UIBezierPath representing the area to be excluded is first created. To set an exclusion path, an array of the avoided areas is passed to the exclusionPaths property of a textContainer. The text container can be found as a property of the UITextView.
- (void)viewDidLoad{ [super viewDidLoad]; UIBezierPath ...
Read now
Unlock full access