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

- (NSString *)accessibilityScrollStatusForScrollView #7

Open
pscarnegie opened this issue Jan 26, 2017 · 0 comments
Open

- (NSString *)accessibilityScrollStatusForScrollView #7

pscarnegie opened this issue Jan 26, 2017 · 0 comments

Comments

@pscarnegie
Copy link

You have a method in your ASWeekSelectorView class that returns an NSString, however I don't see anyplace where you're actually using that method for anything. If I'm reading it right, it will return an NSString of the particular week that you're paging to via swiping left or right. I was wondering if that might be an option for limiting the weeks that are available to swipe between. Can you give me an idea how I'd access that method and return that NSString result back to my main ViewController? I really need to have better control over the amount of weeks that are available to swipe between and could use your assistance with some clear direction. Thanks.

  • (NSString *)accessibilityScrollStatusForScrollView:(UIScrollView *)scrollView {
    NSString *format = NSLocalizedStringFromTable(@"Week of %@", @"ASWeekSelectorView", @"Accessibility description when paging through weeks. Supplied %@ is string for the start date.");
    NSDate *startDate = [self.singleWeekViews[1] startDate];
    return [NSString stringWithFormat:format, [self.accessibilityDateFormatter stringFromDate:startDate]];
    }
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

1 participant