码迷,mamicode.com
首页 > 其他好文 > 详细

UIView层的操作(简单总结,备用)

时间:2015-02-03 23:06:46      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

//从主view删除- (void)removeFromSuperview;//插入到指定索引位置- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;//交换两view的索引位置- (void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2;//加到view上- (void)addSubview:(UIView *)view;//插入到siblingSubview下层- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;//插入到siblingSubview下层- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;- (void)bringSubviewToFront:(UIView *)view;- (void)sendSubviewToBack:(UIView *)view;- (void)didAddSubview:(UIView *)subview;- (void)willRemoveSubview:(UIView *)subview;- (void)willMoveToSuperview:(UIView *)newSuperview;- (void)didMoveToSuperview;- (void)willMoveToWindow:(UIWindow *)newWindow;- (void)didMoveToWindow;- (BOOL)isDescendantOfView:(UIView *)view; // returns YES for self.- (UIView *)viewWithTag:(NSInteger)tag; // recursive search. includes self 通过tag值找到某个view

UIView层的操作(简单总结,备用)

标签:

原文地址:http://blog.csdn.net/ytuzhangziyao/article/details/43455579

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!