你的位置:首页 > 软件开发 > 操作系统 > 便利的初始化view以及设置tag值

便利的初始化view以及设置tag值

发布时间:2016-06-19 19:00:05
便利的初始化view以及设置tag值 效果 源码https://github.com/YouXianMing/iOS-Project-Examples 中的 SetRect//// AccessViewTagProtocol.h// Animations//// ...

便利的初始化view以及设置tag值

便利的初始化view以及设置tag值

便利的初始化view以及设置tag值

 

效果

便利的初始化view以及设置tag值

 

源码

https://github.com/YouXianMing/iOS-Project-Examples 中的 SetRect

//// AccessViewTagProtocol.h// Animations//// Created by YouXianMing on 16/6/17.// Copyright © 2016年 YouXianMing. All rights reserved.//#import <Foundation/Foundation.h>#import <UIKit/UIKit.h>typedef void(^ViewSetupBlock)(UIView * view);@protocol AccessViewTagProtocol <NSObject>@required/** * Set the view whose tag matches the specified value. * * @param view View. * @param tag tag. */- (void)setView:(UIView *)view withTag:(NSInteger)tag;/** * Remove the tag. * * @param tag View's tag. */- (void)removeReferenceWithTag:(NSInteger)tag;/** * Get the view from the tag. * * @param tag. * * @return view's object. */- (id)viewWithTag:(NSInteger)tag;@end

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:便利的初始化view以及设置tag值

关键词:ie

ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。