Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attributedTitle not visible in ios5 #10

Open
javalnanda opened this issue Mar 7, 2013 · 1 comment
Open

attributedTitle not visible in ios5 #10

javalnanda opened this issue Mar 7, 2013 · 1 comment

Comments

@javalnanda
Copy link

Hi,
I am adding refresh control as subview to table as follows

self.refreshControl = [[ISRefreshControl alloc] initWithFrame:tableView.frame];
[refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged];
[tableView addSubview:refreshControl];

And, setting the attribute title as follows:

self.refreshControl.attributedTitle = [[NSAttributedString alloc]initWithString:@"Refreshing the TableView"];
//set the date and time of refreshing
NSDateFormatter *formattedDate = [[NSDateFormatter alloc]init];
[formattedDate setDateFormat:@"MMM d, h:mm a"];
NSString *lastupdated = [NSString stringWithFormat:@"Last Updated on %@",[formattedDate stringFromDate:[NSDate date]]];
self.refreshControl.attributedTitle = [[NSAttributedString alloc]initWithString:lastupdated];

[self.refreshControl endRefreshing];

It , is working fine in ios6 but in iOS 5 attribute title is not visible only the indicator is visible.
Also, when we set the attribute the stretch animation of bubble is not shown and directly the refreshing is triggered in ios 6.0.

@ishkawa
Copy link
Owner

ishkawa commented Apr 16, 2013

Sorry, ISRefreshControl.attributedTitle is not supported for now.
I will work for this feature as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants