๊ธฐํƒ€/iOS๐ŸŽ

๊ธฐํƒ€/iOS๐ŸŽ

[iOS/Swift] Tableview section, cell ๊ตฌ๋ถ„์„ , separator ์—†์• ์ฃผ๊ธฐ, Section cell ํด๋ฆญ์‹œ ๊ตฌ๋ถ„์„ (seperator) ์—†์• ์ฃผ๊ธฐ

๐Ÿ˜ก๋ฌธ์ œ์ƒํ™ฉ 1. Section1์— ๋„ฃ์–ด์ค€ ์…€ ์œ„์•„๋ž˜๋กœ ๊ตฌ๋ถ„์„ ์ด ์ƒ๊ธด๋‹ค 2. Section2์˜ Cell ์•ˆ์— ๊ตฌ๋ถ„์„ ์ด ์ƒ๊ธด๋‹ค ๐Ÿžํ•ด๊ฒฐ๋ฐฉ๋ฒ• [ํ…Œ์ด๋ธ”๋ทฐ ๋ณ€์ˆ˜๋ช…].separatorStyle = .none ๐Ÿ˜ก์…€์„ ํด๋ฆญํ•  ๊ฒฝ์šฐ ๋ฌธ์ œ์ƒํ™ฉ 1. ์…€์„ ํด๋ฆญํ–ˆ์„๋•Œ Section1 ๊ตฌ๋ถ„์„ ์ด ์ƒ๊ธด๋‹ค ๐Ÿžํ•ด๊ฒฐ๋ฐฉ๋ฒ• Section์•ˆ์— Header์™€ Footer์•ˆ์— ๊ตฌ๋ถ„์„ ์ด ์กด์žฌํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ƒ๊ธฐ๋Š”๊ฒƒ!! [ํ…Œ์ด๋ธ”๋ทฐ ์…€].selectionStyle = .none ์ „์ฒด ํ•จ์ˆ˜ /// ์…€ ์ง€์ • func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let remindGoalTitleTVC = remindTV.deque..

๊ธฐํƒ€/iOS๐ŸŽ

Exception NSException * "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES."

Tableview๊ฐ€ ์žˆ๋Š” ViewController๋ฅผ ์‹คํ–‰ํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ, ์‹คํ–‰์ด ๋˜์ง€ ์•Š์•˜๋‹ค. ์˜ค๋ฅ˜ ์›์ธ ํ…Œ์ด๋ธ” ๋ทฐ ์…€ ํ•˜๋‚˜๊ฐ€ Autoresizing Mask๊ฐ€ ์„ค์ •์ด ๋˜์–ด์žˆ์—ˆ๋‹ค!

๊ธฐํƒ€/iOS๐ŸŽ

[iOS/์˜ค๋ฅ˜] Cocoapods ์‹คํ–‰ ์˜ค๋ฅ˜

Unable to load contents of file list: '/Target Support Files/Pods-POME-iOS/Pods-POME-iOS-frameworks-Debug-input-files.xcfilelist' ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์ด ๊ธ€์„ ์ฐธ๊ณ ํ–ˆ์„๋•Œ์—๋„ ํ•ด๊ฒฐ์ด ๋˜์ง€ ์•Š์•˜๋‹ค!! https://minny27.tistory.com/41 [iOS / Error] Unable to load contents of file list... ์—๋Ÿฌ ํ•ด๊ฒฐ ์ด์ „ ํฌ์Šคํ„ฐ์—์„œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋‹ค๊ฐ€ ์ƒˆ๋กœ์šด ์—๋Ÿฌ์— ๋ด‰์ฐฉํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ๋ฌธ์ œ๋Š” Xcode 10.2์—์„œ ๋””ํดํŠธ๋กœ ์‚ฌ์šฉ๋˜๋Š” ์ƒˆ๋กœ์šด ๋นŒ๋“œ ํ”„๋กœ์„ธ์Šค์™€ ๊ด€๋ จ๋œ ์—๋Ÿฌ์ž…๋‹ˆ๋‹ค. ํ•ด๋‹น ์—๋Ÿฌ๋ฅผ ํ•ด๊ฒฐํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. [Ste minny27.tistory.com M1 ์นฉ์ด Coco..

๊ธฐํƒ€/iOS๐ŸŽ

[iOS/Swift] UILabel์— Padding ๊ฐ’ ์ฃผ๊ธฐ, Label ๋™์ ์œผ๋กœ text ํฌ๊ธฐ์— ๋งž๊ฒŒ ๋Š˜์–ด๋‚˜๊ฒŒ ํ•˜๊ธฐ - ์ฝ”๋“œ๋ฒ ์ด์Šค, Snapkit, then

๋‚˜์˜ ๋ฏธ์…˜ 1. ๋™๊ทธ๋ž—๊ฒŒ ๋งŒ๋“ค์–ด์•ผํ•จ 2. padding ๊ฐ’์œผ๋กœ ๊ธ€์”จ leading, trailing์— 4์˜ ์—ฌ๋ฐฑ์„ ์ค˜์•ผํ•จ 3. top, bottom ๋„ 2 ์ •๋„์˜ ์—ฌ๋ฐฑ ์•ˆ์˜ ๊ธ€์”จ๊ฐ€ ๋Š˜์–ด๋‚ ๋•Œ๋งˆ๋‹ค, ๊ธ€์”จ๊ฐ€ ๋Š˜์–ด๋‚  ์ˆ˜ ์žˆ๋„๋ก! Label์— Padding ๊ฐ’์„ ์ค„ ์ˆ˜๋Š” ์—†๋‹ค!! ์ปค์Šคํ…€ ํ•ด์„œ ๋งŒ๋“ค์–ด์•ผํ•ด์šฉ! BasePaddingLabel.swift ํŒŒ์ผ์„ ์ƒ์„ฑํ•ด์ค€๋‹ค. import UIKit class BasePaddingLabel: UILabel { private var padding = UIEdgeInsets(top: 2.0, left: 4.0, bottom: 2.0, right: 4.0) convenience init(padding: UIEdgeInsets) { self.init() self.padding = ..

yujindonut
'๊ธฐํƒ€/iOS๐ŸŽ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก