bash명령어들
특정문자 포함된 줄을 모두 삭제하기.. 아직 못해봄
참고: https://www.baeldung.com/linux/delete-lines-containing-string-from-file
// usage view | |
struct UseMine: View { | |
var body: some View { | |
VStack{ | |
Text("some page title") | |
ScrollView { | |
Text("some header") | |
Text("Hello, World!") | |
let warnCss = Bundle.preload(name: "sam", type: "css") |
// typewrite 강좌 해봄. | |
// https://www.kodeco.com/28434449-modern-concurrency-getting-started/lessons/4 | |
struct ContentView: View { | |
var body: some View { | |
VStack { | |
Image(systemName: "globe") | |
.imageScale(.large) | |
.foregroundColor(.accentColor) | |
Text("Hello, world!") | |
} |
// delegation feature has not yet been implemented. | |
func addBlocksWithBottomTwisted(){ | |
let rightEdge = UIScreen.main.bounds.width | |
let nemoRect = CGRect(x: rightEdge - 70, y: 250, width: 100, height: 100) | |
redNemo = UIView(frame:nemoRect) | |
redNemo?.layer.cornerRadius = 100/2 |
// 간단 | |
//https://stackoverflow.com/questions/16367958/move-to-few-point-with-cakeyframeanimation | |
// 좀더 부드럽게 하려면 http://nevard.tistory.com/entry/iOS-애니메이션-3-CAKeyframeAnimation | |
// api 상세설명 http://dolfalf.tistory.com/76 | |
// 뷰가 커졌다.작아진다 http://wookiphone.tistory.com/81 |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let nemo = CGRect(x: 0, y: 0, width: 100, height: 100) | |
let nemoView = UIView(frame: nemo ) | |
nemoView.backgroundColor = UIColor.red.withAlphaComponent(0.7) | |
self.view.addSubview(nemoView) |
//[Warning Message] | |
//“sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers” warning | |
//[Warning] | |
const NSString * kBlahBlash = @""; // 상수를 가리키는 포인터 (pointer to constant) | |
// equivalent to | |
NSString const * kBlahBlash = @""; | |
//make custom class | |
@interface MyData : NSObject <NSCoding> | |
-(id)initWithCoder:(NSCoder *)decoder; //for encoding. | |
-(void)encodeWithCoder:(NSCoder *)encoder; //for decoding | |
@end | |
//hot to use |
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var imageView: UIImageView! | |
@IBOutlet weak var scrollView: UIScrollView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |