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
find . \( -iname Pods -prune \) -o \( -iname \*.m -o -iname \*.mm -o -iname \*.h -o -iname \*.swift \) -print | sed -e 's/"/"\\""/g' -e 's/.*/"&"/' | xargs wc -l | awk '/total/{k+=$1}END{print k,"total"}' |
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 protocol ViewControllerLifecycleBehavior { | |
func afterLoading(_ viewController: UIViewController) | |
func beforeAppearing(_ viewController: UIViewController) | |
func afterAppearing(_ viewController: UIViewController) | |
func beforeDisappearing(_ viewController: UIViewController) | |
func afterDisappearing(_ viewController: UIViewController) |
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
@import AddressBook; | |
- (void)removeContactWithName:(NSString *)name { | |
NSString *searchName = name; | |
ABAddressBookRef addressbook = ABAddressBookCreate(); | |
CFStringRef nameRef = (__bridge CFStringRef) searchName; | |
CFArrayRef allSearchRecords = ABAddressBookCopyPeopleWithName(addressbook, nameRef); | |
[self removeContactWithRecordsList:allSearchRecords]; | |
} |