We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have several lists, which each need to have different state texts, try this:
Header: NSArray *stateText; @Property (nonatomic, copy) NSArray *stateText;
Code: -(void)setState { case EGOOPullRefreshPulling: if (self.stateText) statusLabel.text = [self.stateText objectAtIndex:0]; else statusLabel.text = @"Release to refresh..."; ... } - (void)dealloc { [stateText release]; stateText = nil; Use: refreshHeaderView.stateText = [NSArray arrayWithObjects: @"Release", @"Pull", @"Load", nil];
The text was updated successfully, but these errors were encountered:
Thanks Jomnius, definitely useful. Since we're only using each string once, hardcoding instead of storing in memory is preferred in this case :)
Sorry, something went wrong.
No branches or pull requests
If you have several lists, which each need to have different state texts, try this:
Header:
NSArray *stateText;
@Property (nonatomic, copy) NSArray *stateText;
Code:
-(void)setState
{
case EGOOPullRefreshPulling:
if (self.stateText)
statusLabel.text = [self.stateText objectAtIndex:0];
else
statusLabel.text = @"Release to refresh...";
...
}
- (void)dealloc
{
[stateText release]; stateText = nil;
Use:
refreshHeaderView.stateText = [NSArray arrayWithObjects:
@"Release", @"Pull", @"Load", nil];
The text was updated successfully, but these errors were encountered: