[TIL] 2021.02.07

μŠΉμ•„Β·2021λ…„ 2μ›” 7일
0

πŸ‘©πŸ»β€πŸ’» 였늘 κ³΅λΆ€ν•œ λ‚΄μš©

βœ… An internal error occurred. editing functionality may be limited 였λ₯˜ ( μ°Έκ³ μ‚¬μ΄νŠΈ )

ν„°λ―Έλ„μ—μ„œ μ•„λž˜ μ½”λ“œ μ‹€ν–‰

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

βœ… Navigation Bar 투λͺ… ( μ°Έκ³ μ‚¬μ΄νŠΈ )

class SelectWishViewController: UIViewController {

    @IBOutlet weak var bar: UINavigationBar!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        setNavigationBar()
    }
    
    func setNavigationBar(){
        bar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
        bar.shadowImage = UIImage() // 투λͺ… μ΄λ―Έμ§€λ‘œ μ„€μ •
        bar.backgroundColor = UIColor.clear
    }
}

βœ… ν™”λ©΄ μ „ν™˜ Data 보내기

  • λ³΄λ‚΄λŠ” ViewController
let selectWishStoryboard = UIStoryboard.init(name: "Main", bundle: nil)
guard let selectWishVC = selectWishStoryboard.instantiateViewController(identifier: "SelectWishViewController") as? SelectWishViewController else { return }
selectWishVC.modalPresentationStyle = .fullScreen

selectWishVC.paramIndex = indexPath.item // indexPath.item λ„˜κ²¨μ€Œ

present(selectWishVC, animated: true, completion: nil)
  • λ°›λŠ” ViewController
var paramIndex: Int = 0

0개의 λŒ“κΈ€