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
With the follow code:
let leftItemIcons = ["musicBarItem", "lightBarItem", "bleBarItem", "settingBarItem"] var leftItemColors = [UIColor.black25PercentColor(), UIColor.black25PercentColor(), UIColor.black25PercentColor(), UIColor.black25PercentColor()];
var leftBar = RNFrostedSidebar(images: leftItemIcons, selectedIndices: NSIndexSet(index: 1), borderColors: leftItemColors); leftBar.delegate = self; leftBar.show();
It failed at the line view.imageView.image = image; in [_images enumerateObjectsUsingBlock:^(UIImage *image, NSUInteger idx, BOOL *stop)
The text was updated successfully, but these errors were encountered:
I fit it with the follow:
[_images enumerateObjectsUsingBlock:^(NSString *image, NSUInteger idx, BOOL *stop) { RNCalloutItemView *view = [[RNCalloutItemView alloc] init]; view.itemIndex = idx; view.clipsToBounds = YES; view.imageView.image = [UIImage imageNamed:image]; [_contentView addSubview:view];
[_itemViews addObject:view]; if (_borderColors && _selectedIndices && [_selectedIndices containsIndex:idx]) { UIColor *color = _borderColors[idx]; view.layer.borderColor = color.CGColor; } else { view.layer.borderColor = [UIColor clearColor].CGColor; } }];
Sorry, something went wrong.
No branches or pull requests
With the follow code:
let leftItemIcons = ["musicBarItem", "lightBarItem", "bleBarItem", "settingBarItem"]
var leftItemColors = [UIColor.black25PercentColor(), UIColor.black25PercentColor(), UIColor.black25PercentColor(), UIColor.black25PercentColor()];
var leftBar = RNFrostedSidebar(images: leftItemIcons, selectedIndices: NSIndexSet(index: 1), borderColors: leftItemColors);
leftBar.delegate = self;
leftBar.show();
It failed at the line view.imageView.image = image; in [_images enumerateObjectsUsingBlock:^(UIImage *image, NSUInteger idx, BOOL *stop)
The text was updated successfully, but these errors were encountered: