I would like to have something like this [
UIRefreshControl refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(addReceipt:)
forControlEvents:UIControlEventValueChanged];
self.refreshControl = refreshControl;
NSString s = @"Swipe Down to Add Receipt";
NSMutableAttributedString *a = [[NSMutableAttributedString alloc] initWithString:s];
[a addAttribute:NSForegroundColorAttributeName value:[UIColor darkGrayColor] range:NSRangeFromString(s)];
refreshControl.attributedTitle = a;]
I would like to have something like this [ UIRefreshControl refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(addReceipt:) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refreshControl; NSString s = @"Swipe Down to Add Receipt"; NSMutableAttributedString *a = [[NSMutableAttributedString alloc] initWithString:s]; [a addAttribute:NSForegroundColorAttributeName value:[UIColor darkGrayColor] range:NSRangeFromString(s)]; refreshControl.attributedTitle = a;]
for this Control