• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get a "Normal" button in iOS 7/IB / One Solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get a "Normal" button in iOS 7/IB / One Solution


  • Subject: Re: How to get a "Normal" button in iOS 7/IB / One Solution
  • From: Dave <email@hidden>
  • Date: Fri, 04 Oct 2013 08:59:37 +0100

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 <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


References: 
 >How to get a "Normal" button in iOS 7/IB (From: Dave <email@hidden>)
 >Re: How to get a "Normal" button in iOS 7/IB / One Solution (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: How to get a "Normal" button in iOS 7/IB
  • Next by Date: Re: NSOutlineView cell size 8 pixels too narrow
  • Previous by thread: Re: How to get a "Normal" button in iOS 7/IB / One Solution
  • Next by thread: iOS 7 GUI update lag during drag touches
  • Index(es):
    • Date
    • Thread