본문 바로가기

도래울

검색하기
도래울
프로필사진 도래울

  • 도래울 (213)
    • 개발 (186)
      • iOS (97)
      • Android (75)
      • Web (2)
      • DataBase (4)
      • Eclipse (1)
      • Server (1)
      • Office (1)
    • 아이폰 (1)
    • IT (5)
    • MAC (2)
    • 게임 (3)
    • 자동차 (1)
    • 스키장 (1)
    • 여행 (3)
    • 요리 (2)
    • 휴대폰 구매 (4)
    • 꿈 해몽 (3)
    • 공유 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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 31
Tags
  • swift3
  • setting
  • 샘플
  • Example
  • LG유플러스
  • Xcode
  • afterdelay
  • push
  • 신도림
  • IOS
  • UITableView
  • 포켓몬 GO
  • Bitcode
  • Check
  • GCD
  • 얻는법
  • 페이백
  • UIView
  • 앱스토어
  • 포켓볼
  • 아이폰7
  • 공략
  • 해몽
  • simulator
  • 보라카이
  • 신도림 테크노마트
  • error
  • 스마트폰
  • loop
  • swift
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록view in (1)

도래울

remove all subviews of a view in Swift

By far the best way to do this in Swift for iOS is:view.subviews.forEach({ $0.removeFromSuperview() }) // this gets things done view.subviews.map({ $0.removeFromSuperview() }) // this returns modified array^^ These features are fun!let funTimes = ["Awesome","Crazy","WTF"] extension String { func readIt() { print(self) } } funTimes.forEach({ $0.readIt() })//// END EDITJust do this:for view in sel..

개발/iOS 2016. 7. 13. 09:06
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바