Thursday, 12 April 2012

Temporarily Spawning UIImageView


i have uiimageview called hitbox. , ibaction called hit. want temporarily spawn hitbox uiimageview hitbox fractions of second.

code:
-(ibaction)hit{  here temporarily want spawn hitbox  }
thanks :)
 

well, add new 1 doing like:

code:
uiimageview *hitbox = [[uiimageview alloc] initwithimage:hitboximage];  [self.view addsubview:hitbox];  [hitbox setframe:cgrectmake(x,y,hitboxhorizsize, hitboxvertsize)];
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment