Apple의 메시지
- 10.0 Before You Submit: Program License Agreement (iOS) >
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** - 새창 열기, 닫기 예제 **/ | |
///메인으로 사용중인 웹뷰 | |
lazy var webView = WKWebView() | |
///window.open()으로 열리는 새창 | |
var createWebView: WKWebView? | |
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'xcodeproj' | |
name = 'test_copy' | |
proj_path = 'test.xcodeproj' | |
proj = Xcodeproj::Project.open(proj_path) | |
src_target = proj.targets.last #find { |item| item.to_s == 'test' } |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func euckrEncoding(_ query: String) -> String { //EUC-KR 인코딩 | |
let rawEncoding = CFStringConvertEncodingToNSStringEncoding(CFStringEncoding(CFStringEncodings.EUC_KR.rawValue)) | |
let encoding = String.Encoding(rawValue: rawEncoding) | |
let eucKRStringData = query.data(using: encoding) ?? Data() | |
let outputQuery = eucKRStringData.map {byte->String in | |
if byte >= UInt8(ascii: "A") && byte <= UInt8(ascii: "Z") | |
|| byte >= UInt8(ascii: "a") && byte <= UInt8(ascii: "z") | |
|| byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Logger.swift | |
// | |
// | |
// Created by Elon on 23/01/2019. | |
// Copyright © 2019 Elon. All rights reserved. | |
// | |
import Foundation |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RealmSwift | |
import ObjectMapper | |
class ArrayTransform<T: RealmSwift.Object>: TransformType where T: Mappable { | |
typealias Object = List<T> | |
typealias JSON = Array<AnyObject> | |
/** | |
- Parameter value: JSON Value | |
- Returns: if value is `nil` or not Array will be return empty List<T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
/** | |
## bold | |
- Parameter size: 폰트 크기 | |
- Parameter color: 폰트 컬러 | |
*/ | |
func bold(size fontSize: CGFloat, color: UIColor? = nil) -> NSMutableAttributedString { | |
var attributes: [NSAttributedString.Key : Any] = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum AppStoryboard: String { | |
case main = "Main" | |
} | |
extension UIViewController { | |
static func instantiate<T: UIViewController>(by storyboardName: AppStoryboard) -> T? { | |
let type = String(describing: T.Type.self) | |
guard let identifier = type.components(separatedBy: ".").first else { return nil } | |
let storyboard = UIStoryboard(name: storyboardName.rawValue, bundle: nil) |
OlderNewer