NSLocale* currentLocale = [NSLocale currentLocale];
        [[NSDate date] descriptionWithLocale:currentLocale];
        NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"yyyy-MM-dd"];
        NSLog(@"%@",[dateFormatter stringFromDate:[NSDate date]]);
        good2date = [dateFormatter stringFromDate:[NSDate date]];

 

//  Converted to Swift 5.3 by Swiftify v5.3.19197 - https://swiftify.com/

let currentLocale = NSLocale.current as NSLocale

Date().description(with: currentLocale)

let dateFormatter = DateFormatter()

dateFormatter.dateFormat = "yyyy-MM-dd"

print("\(dateFormatter.string(from: Date()))")

good2date = dateFormatter.string(from: Date())

.

.

.

  let currentLocale = NSLocale.current as NSLocale

        Date().description(with: currentLocale as Locale)

        let dateFormatter = DateFormatter()

        dateFormatter.dateFormat = "yyyy-MM-dd"

        print("\(dateFormatter.string(from: Date()))")

        let good2date = dateFormatter.string(from: Date())

        var ylocation : CGFloat

        var _ylocation : CGFloat {

            get {

                ylocation = ylocation + 50

                return ylocation

            }

            set(newv) {

                ylocation = newv

            }

        }

        ylocation = 200

        var img2 = Util.textToImage(drawText: Util.getUserDefault(key: "userinfo"), inImage: img ?? UIImage(), atPoint: CGPoint(x: 10, y: _ylocation))

 

+= 도 괜찮았지만.

 

 

'진행 프로젝트 > [진행] 개발 팁 "줘볼까?"' 카테고리의 다른 글

#define to let  (0) 2020.11.26
drawrect  (0) 2020.11.25
drawText  (0) 2020.11.24
포로그래메트리  (0) 2020.10.04
I love swift & 3D programming.  (0) 2019.01.22

+ Recent posts