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
//https://developer.apple.com/library/content/samplecode/TableSearch_UISearchController/Introduction/Intro.html | |
// MARK: - UISearchResultsUpdating | |
func updateSearchResults(for searchController: UISearchController) { | |
// Update the filtered array based on the search text. | |
let searchResults = products | |
// Strip out all the leading and trailing spaces. | |
let whitespaceCharacterSet = CharacterSet.whitespaces |
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 <Foundation/Foundation.h> | |
@interface MyCalendar : NSObject | |
+ (void)requestAccess:(void (^)(BOOL granted, NSError *error))success; | |
+ (BOOL)addEventAt:(NSDate*)eventDate withTitle:(NSString*)title inLocation:(NSString*)location; | |
@end |