This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ParallaxGroupedSectionHeaderTableView: UITableView { | |
override public func layoutSubviews() { | |
super.layoutSubviews() | |
layoutHeaderViews() | |
} | |
private func layoutHeaderViews() { | |
for index in 0 ..< numberOfSections { | |
guard let sectionView = headerView(forSection: index) else { continue } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Domains</key> | |
<dict> | |
<key>Applications</key> | |
<true/> | |
<key>Printing</key> | |
<true/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSArray *)inbetweenRangesForArrayOfRanges:(NSArray *)arrayOfRanges forString:(NSString *)string | |
{ | |
NSMutableArray *ranges = @[].mutableCopy; | |
for (int i = 0; i < arrayOfRanges.count; i++) | |
{ | |
// grab the first range | |
NSRange currentRange = [arrayOfRanges[i] rangeValue]; | |
// add it to our return object |