连击 天
fork: star:
extension UIViewController : UITextViewDelegate { func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool { return textVie...
// 获取最顶层的ViewController [self getCurrentVC1]; //获取当前屏幕显示的viewcontroller - (UIViewController *)getCurrentVC1 { UIViewController *rootViewController = [self getView...
UIImageView *leftSearcgImgView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 10, 30, 15)]; leftSearcgImgView.image = [UIImage imageNamed:@"search"]; leftSearcgImgView.cont...
CGSize attrStrSize = [_priceDetailLabel.text boundingRectWithSize:CGSizeMake(kScreenWidth, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeNa...
#import "CALayer+HDCXibBorderColor.h" #import @implementation CALayer (HDCXibBorderColor) - (void)setBorderColorWithUIColor:(UIColor *)color{ self.borderColor = color.CG......
CGSize titleSize = [self.remarkLabel.text boundingRectWithSize:CGSizeMake(self.remarkLabel.frame.size.width, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@...
//UILabel内容复制 self.contentLabel.userInteractionEnabled = YES; [self.contentLabel addGestureRecognizer: [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@sele...
#import "ViewController.h" @interface ViewController () { NSCondition *_condition; } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //......
初始化数据锁 NSLock *lock =[NSLock alloc]init]; 数据加锁 [lock lock]; 数据解锁 [lock Unlock]; 简单的模拟窗口卖票加锁 #import "ViewController.h" @interface ViewController () { in...
YBPayHelperViewController *chooseVC = [[UIStoryboard storyboardWithName:@"AddUI" bundle:nil] instantiateViewControllerWithIdentifier:@"YBPayHelperViewController"]; AppDelegate *...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复