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 --- 3K Ausstellung für iPhone und IPad, Drei Künstler in Oberneunforn > Am 03.10.2013 um 20:56 schrieb Dave <d...@looktowindward.com>: > > Hi All, > > I want to create a button (UIButton) that actually looks like a button, e.g. > with a border round, as in iOS <7 is iOS 7, preferably with IB but in code > otherwise. Which properties do I need to tweak in order to get this? > > I've been playing around for a while and can't seem to just get a common, all > garden, down to earth, no messing around - Button!!! > > > Thanks a lot > Dave > > > _______________________________________________ > > 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/prolog%40jumbosoft.de > > This email sent to pro...@jumbosoft.de _______________________________________________ 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