1、值类型和引用类型是Swift中两种数据存储方式,简单来说值类型就是直接存储的值,引用类型就是存储的指针2、在 Swift 中,struct,...
1、静态方法(类型方法)相当于OC+ ,无需实例化,可以直接访问其方法class Math{class func abs(number: Int...
map 遍历集合中的每个元素let numbers = [1, 2, 3, 4, 5]let doubledNumbers = numbers....
圆弧画法 CGContextMoveToPoint(context, point3.x, point3.y); CGContextAddArc...
- (CGFloat)getNavigationBarHeight { if(@available(iOS13.0, *)) { N...
-(void)layoutSubviews { UIBezierPath *maskPath = [UIBezierPath bezierP...
view的层级结构 设置ScrollView的Layout 设置contentView的Layout 设置contentView中View的La...
[UIView animateWithDuration: 0.2 delay: 0 options: UIViewAnimationOpt...
1. 写当前类的全局类方法 普通的View + (DetailInfoView*)sharedView { static DetailInf...