CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Aug 2015 |
Maintained by Natalia Osiecka.
Circle arc based control with selected number of leaves (like a pizza).
Please refer to the demo for more in depth examples or check out source code.
[rosettaView setActionBlock:^(NORVView *view, NSUInteger selectedIndex) {
[view setSelectedIndex:selectedIndex];
[weakSelf updateView:view withSelectedIndex:selectedIndex];
}];
[rosettaView setSelectedIndex:selectedIndex];
[rosettaView setLeaves:@[leaf1, leaf2, leaf3]];
[rosettaView setStartAngle:45.f];
[rosettaView setTotalAngle:90.f];
[rosettaView setMarginAngle:5.f];
[rosettaView setThickness:70.f];
[rosettaView setShadowWidth:5];
[rosettaView setShadowColor:[UIColor blackColor]];
[NORVLeaf rosettaLeafWithColor:[UIColor grayColor]
selectedColor:[UIColor blackColor]
circleTextView:[NORVCircleTextView rosettaCircleText:@"Button" withTextAttributes:nil]];
[leaf setColor:[UIColor blackColor]];
[leaf setSelectedColor:[UIColor blackColor]];
[leaf.circleTextView setTextAttributes:(i == selectedIndex) ? selectedTextAttributes : textAttributes];
Inherits from XMCircleTypeView (credits: XMCircleType). Is used to display the text on each leaf.
[NORVCircleTextView rosettaCircleText:NSLocalizedString(@"Quite Long Button", nil)
withTextAttributes:nil];
In your projects git folder type:
git submodule init
git submodule add --copy link to the repo--
git submodule update
Copy all files from NORosettaView/RosettaView folder.
This is strongly misadvised as you won't be able to see code updates. Clone or download the source, copy all files from NOCategories folder.
Natalia Osiecka, osiecka.n@gmail.com
Available under the Apache 2.0 license. See the LICENSE file for more info.
Requires Xcode 6, targeting either iOS 6.0 or higher.