- 博客(3)
- 收藏
- 关注
原创 ios 使用Masonary创建等间距排列的控件
UIView *backView = [[UIView alloc] init]; backView.backgroundColor = [UIColor grayColor]; [self.view addSubview:backView]; [backView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.right.equalTo(self.view); make.top.
2020-05-26 21:37:17 374
原创 iOS根据生日判断星座
-(NSString *)getAstroWithMonth:(int)m day:(int)d{ NSString *astroString = @"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯"; NSString *astroFormat = @"102123444543"; NSString *result; if (m<1||m>12||d<1||d>31){ return @"错误日期格式!"; } if(m==2 &
2020-05-23 11:14:54 347
原创 iOS单例
ios单例的使用加粗样式static NetworkManage *_instance = nil;@implementation NetworkManage+(instancetype)shareManage{ return [[self alloc] init]; }+(id)allocWithZone:(struct _NSZone *)zone{ static dispatch_once_t onceToken; dispatch_once(&on
2020-05-23 11:11:20 142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人