Thanks a lot Ronald, that's great, I think I will add this as subclass of UIButton!
Dave On 4 Oct 2013, at 03:48, Ronald Hofmann <pro...@jumbosoft.de> wrote: > This is a fully configurable, common, all garden, down to earth, no messing > around - Button code snippet generated by UI Tuner. > > > //******************************* > // UI Tuner - v1.2 > // Auto generated code > // Generated on: 04-10-2013 00:29 > // Deployment Target: iOS 6.0 > //******************************* > - (UIButton*)generateUITunerObject > { > > UIButton *myObject = [UIButton > buttonWithType:UIButtonTypeRoundedRect]; > > [myObject setTitle:@"Normal State" forState:UIControlStateNormal]; > [myObject setTitle:@"Normal State" forState:UIControlStateHighlighted]; > [myObject setTitle:@"Normal State" forState:UIControlStateDisabled]; > > [myObject setTitleColor:[UIColor darkGrayColor] > forState:UIControlStateNormal]; > [myObject setTitleColor:[UIColor whiteColor] > forState:UIControlStateHighlighted]; > [myObject setTitleColor:[UIColor grayColor] > forState:UIControlStateDisabled]; > > [myObject setTitleShadowColor:[UIColor colorWithWhite:0.00 alpha:0.50] > forState:UIControlStateNormal]; > [myObject setTitleShadowColor:[UIColor colorWithWhite:0.00 alpha:0.50] > forState:UIControlStateHighlighted]; > [myObject setTitleShadowColor:[UIColor colorWithWhite:0.00 alpha:0.50] > forState:UIControlStateDisabled]; > myObject.reversesTitleShadowWhenHighlighted = NO; > > myObject.titleLabel.font = [UIFont > boldSystemFontOfSize:15]; > myObject.titleLabel.lineBreakMode = > NSLineBreakByTruncatingMiddle; > myObject.titleLabel.shadowOffset = CGSizeMake (0, 0); > > myObject.adjustsImageWhenHighlighted = YES; > myObject.adjustsImageWhenDisabled = YES; > myObject.tintColor = nil; > > myObject.contentEdgeInsets = UIEdgeInsetsMake (0, 0, 0, > 0); > myObject.titleEdgeInsets = UIEdgeInsetsMake (0, 0, 0, > 0); > myObject.imageEdgeInsets = UIEdgeInsetsMake (0, 0, 0, > 0); > > myObject.enabled = YES; > myObject.highlighted = NO; > myObject.selected = NO; > myObject.contentHorizontalAlignment = > UIControlContentHorizontalAlignmentCenter; > myObject.contentVerticalAlignment = > UIControlContentVerticalAlignmentCenter; > > myObject.frame = CGRectMake (333, 33, 156, > 44); > myObject.bounds = CGRectMake (0, 0, 156, > 44); > myObject.center = CGPointMake (411, 55); > myObject.transform = CGAffineTransformIdentity; > > myObject.backgroundColor = nil; > myObject.hidden = NO; > myObject.alpha = 1.00; > myObject.clipsToBounds = NO; > > myObject.layer.borderWidth = 0.00; > myObject.layer.borderColor = [[UIColor > colorWithRed:0.00 green:0.00 blue:0.00 alpha:1.00] CGColor]; > myObject.layer.cornerRadius = 0.00; > myObject.layer.shadowColor = [[UIColor > colorWithRed:0.00 green:0.00 blue:0.00 alpha:1.00] CGColor]; > myObject.layer.shadowOffset = CGSizeMake (0, -3); > myObject.layer.shadowOpacity = 0.00; > myObject.layer.shadowRadius = 3.00; > myObject.layer.masksToBounds = NO; > > return myObject; > > } // generateUITunerObject > > Regards > Ronald Hofmann _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com