Friday, 23 September 2011

How to add a set of object runtime?


hello guys,

here want implement, in following picture have set of objects,
[​img]

how can multiply set runtime below it, when press button?

example if press add more, this

[​img]
[​img]
 

attached files:

before go further, have @ thread title: "how add set of object runtime?" supposed mean? trying hear; can't bothered pick thread title expresses want in meaningful english?

"objects" talking called "views".

create objects want add. instances of subclass of nsview, right [xxx alloc] , initwithframe it.

figure out go in view , use setframe.

add them parent view using addsubview.
 


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