So i've been looking around for a example of implementing the UIGlassButton class. - but couldent find any.
So i created one myself after some diggin'.
And i really dont know where to put it, so here it is.
- And also: i thisk the solution should be OK by Apple. We'll see.
Anyway, here's the code;
Class $UIGlassButton = objc_getClass("UIGlassButton");
UIGlassButton *glassButton = [[$UIGlassButton alloc] initWithFrame:CGRectMake(30, 371, 274, 42)];
[glassButton setTintColor: [UIColor orangeColor]];
[glassButton setTitle:@"Create a Group" forState:UIControlStateNormal];
[self.view addSubview:glassButton];
Actually i just wanted a transparent glassbutton with an icon, so i've added:
[glassButton setBackgroundColor:[UIColor clearColor]];
[glassButton setImage:[UIImage imageNamed:iconPath] forState:UIControlStateNormal];
As easy as that.
Keep coding - peace.