일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- php
- react
- css3
- xcode
- javascript
- button
- effect
- 비전공자
- iOS 개발자
- IOS
- SWIFT
- MAC
- Animation
- jQuery
- html5
- iPhone
- ipad
- 개발자
- HTML
- 풀스택
- 애니메이션
- 비전공 개발자
- 백엔드
- hover
- 프론트엔드
- front-end
- CSS
- keyframes
- image
- 자바스크립트
- Today
- Total
목록MAC (36)
비전공자 개발일기

import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var textField: UITextField! override func viewDidLoad() { super.viewDidLoad() textField.delegate = self setup() } func setup() { view.backgroundColor = UIColor.gray textField.placeholder = "Input Ur Email Address" textField.keyboardType = UIKeyboardType.emailAddress textField.borderStyle = .roundedRect text..

0 ~ 60초 사이의 타이머를 설정하고, START 버튼을 누르면 1초씩 슬라이드 및 레이블이 바뀌며 0초가 되면 알림이 울림, 도중에 RESET을 누르면 초기 화면으로 되돌아감 import UIKit import AVFoundation class ViewController: UIViewController { @IBOutlet weak var mainLabel: UILabel! @IBOutlet weak var slider: UISlider! weak var timer: Timer? var number = 0 override func viewDidLoad() { super.viewDidLoad() configureUI() } func configureUI() { mainLabel.text = "Set t..

New Apple Watch $500 Buy Now * { margin: 0; padding: 0; box-sizing: border-box; position: relative; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #09383E; } .card { width: 300px; height: 400px; background-color: #FFF; transform-style: preserve-3d; transform: perspective(2000px); transition: 1s; box-shadow: inset 300px 0 50px rgba(0, 0,..
나머지 구하기 import UIKit func solution(_ num1:Int, _ num2:Int) -> Int { guard (num1 > 0 && num1 0 && num2 = num2) { res = num1 % num2 return res } else { res = num2 % num1 return res } } solution(3, 2) solution(10, 5) 중앙값 구하기 -> 다른 방법도 찾아서 숙지 (내장 함수 숙지) func solution(_ array:[Int]) -> Int { guard (array.count % 2 != 0), (array.count > 0 && array.count < 100) else { return -1001 } for i in array { gu..

FILTER GALLERY All Animals Lightning Desert body { margin: auto; background: orange; width: 353px; font-family: "Arial" } h2 { text-align: center; } ul { padding: 0; } ul.gallery li { display: inline-block; opacity: 1; -webkit-transition: opacity .5s ease-in-out; -moz-transition: opacity .5s ease-in-out; -o-transition: opacity .5s ease-in-out; transition: opacity .5s ease-in-out; } label { curso..

import UIKit // 1안 class ViewController: UIViewController { @IBOutlet weak var mainLabel: UILabel! @IBOutlet weak var numLabel: UILabel! var comChoice = Int.random(in: 1...10) var myChoice = 1 override func viewDidLoad() { super.viewDidLoad() mainLabel.text = "아래 숫자들 중에서 선택" numLabel.text = "" } @IBAction func btnPressed(_ sender: UIButton) { guard let numString = sender.currentTitle else { retu..

import Foundation var comChoice = Int.random(in: 1...100) var myChoice: Int = 0 print("컴퓨터가 선택한 숫자 맞추기") while true { var myInput = readLine() print("당신의 입력한 숫자: \(myInput!)") if let input = myInput { if let num = Int(input) { myChoice = num } } if(comChoice > myChoice) { print("UP") myChoice = 0 } else if (comChoice < myChoice) { print("DOWN") myChoice = 0 } else { print("BINGO") break } }

import UIKit class ViewController: UIViewController { @IBOutlet weak var firstImgView: UIImageView! @IBOutlet weak var secondImgView: UIImageView! var diceArray: [UIImage] = [#imageLiteral(resourceName: "black1"), #imageLiteral(resourceName: "black2"), #imageLiteral(resourceName: "black3"), #imageLiteral(resourceName: "black4"), #imageLiteral(resourceName: "black5"), #imageLiteral(resourceName: ..