iphone - uibutton animation -


In this way there is a possibility to an ubutton animate that something or whatever comes out of the background

thanks :)

Is this possible? Itemprop = "text">

Unless you want another complex animation, you can change the type for a custom type UIButton (IB by changing the type, or with the program UIButton * aButton = [UIButton buttonWithType: UIButtonTypeCustom] ), then set the image of the button with the [aButton setImage]: [UIImage imageNamed: @ "wheat_ear" forState: UIControlStateNormal] .

To move it, simply normalize its status ...

  [UIVive ChetanWidth: 0 Animation: ^ {aButton.center = newCenter;}] ; Or, to provide the illusion of coming out of the field, enlarge the image's range so that it starts from the width of the image and zero altitude, and the width of the image Finish and Height:  
  CGRTA BasicFrame = a Button Frame; AButton.frame = CGRectMake (originalframe.organ.x, originalframe.organ.a., default frame size.width, 0); [UIView Animatwidth Chaos: 0.5 Animations: ^ {aButton.frame = originalFrame;}];    

Comments