iphone - iOS how to create scale view -


how create view changed scale when button pushed.

when push "x" of small view, view changed big view animation. when push "x" of big view, view changed small view animation. and, anytime can click "b" viewed on each view. how create view?

 small view   |bbbbb|         |bbxbb|    big view   |bbbbb|   |bbbbb|   |bbbbb|   |bbbbb|   |bbxbb| 

- (ibaction)buttontapped:(id)sender {     [uiview animatewithduration:0.5 animations:^{         uiview *view = (uiview *)sender;         view.frame = cgrectequaltorect(view.frame, small_rect) ? big_rect : small_rect;     }]; } 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -