开发者

Redraw with new properties - Cocoa/Objective C

开发者 https://www.devze.com 2023-02-15 19:45 出处:网络
Say that I have this view called \"MyView\". And I have these three dropdowns called \"Shadow\", \"Color\" and \"Border\".

Say that I have this view called "MyView". And I have these three dropdowns called "Shadow", "Color" and "Border".

Whenever I change one of these dropdowns I want the view to update with the selected property! How do I do this? I'm currently just able to draw a square in the view :(

Please help m开发者_Go百科e out on this one!

Thank you!


Each time you change a value - call [myRectangleView setNeedsDisplay:YES]. This way your app will know that it needs to redraw the view and once it does - it will use newly set values.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号