모바일106 URL 을 받아올때 nil값이 넘어온다. 파일명2018-01-23 09;20;24_4(14).png경로 + 해당 파일명이 넘어올때 리턴값이 nil값이 넘어온다 https://stackoverflow.com/questions/3439853/replace-occurrences-of-space-in-url var urlString = originalString.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed) var urlString = originalString.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed) https://developer.apple.com/documentatio.. 2018. 1. 25. ScrollVIew에서 가로스크롤 막기 https://stackoverflow.com/questions/32197630/disabling-horizontal-scrolling-from-uiscrollview-swift 해당클래스에 스크롤뷰 Delegate를 추가한다. UIScrollViewDelegate func scrollViewDidScroll(_ scrollView: UIScrollView) { if scrollView.contentOffset.x>0 { scrollView.contentOffset.x = 0 } } 2018. 1. 24. TableCell 선택시 페이지 이동 Segue StoryBoard에 TableView를 만들었긴했는데cell의 경우 xib형태로 따로 빼서 만들었다 그럴경우 어떻게 연결해야하는가?let tbv = storyboard!.instantiateViewController(withIdentifier: "detailViewController")self.show(tbv, sender: nil) Segue http://theeye.pe.kr/archives/2292 let tbv = storyboard!.instantiateViewController(withIdentifier: "detailViewController") as! DetailViewController tbv.idx = mainTableArray[mainTableView.indexPathForSelec.. 2018. 1. 17. ios App Icon 사이즈 https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/ 앱 아이콘 사이즈Device or contextIcon sizeiPhone180px × 180px (60pt × 60pt @3x)120px × 120px (60pt × 60pt @2x)iPad Pro167px × 167px (83.5pt × 83.5pt @2x)iPad, iPad mini152px × 152px (76pt × 76pt @2x)App Store1024px × 1024px (1024pt × 1024pt @1x) Spotlight, Settings, and Notification IconsDeviceSpotlight icon sizeiPhon.. 2018. 1. 17. TableVIew에서 이미지사용시 이미지변경이 느릴때 prepareForReuse() prepareForReuse()https://developer.apple.com/documentation/uikit/uitableviewcell/1623223-prepareforreuse 설명이 잘되어있는 사이트https://medium.com/ios-seminar/why-we-use-dequeuereusablecellwithidentifier-ce7fd97cde8e class BestTableViewCell: UITableViewCell { // MARK: - Instance Vars @IBOutlet weak var mainStackView: UIStackView! @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var mainImageView: UI.. 2018. 1. 17. The resource could not be loaded because the App Transport Security policy requires the use of a secure connection rror Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." HTTPS로 통신을 하지 않을경우 가능하게 풀어줘야한다. https://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ http://blowmj.tistory.com/entry/iOS-iOS9-App-Transport-Security-%EC%84%A4%EC%A0%95%EB%B2%95 App-Transport-Security설정 Info.pilist N.. 2018. 1. 11. HTTP 통신 , JSON 처리 pod 'Alamofire' pod 'AlamofireImage' pod 'SwiftyJSON' pod 'Alamofire-SwiftyJSON' https://github.com/Alamofire/Alamofirehttps://github.com/Alamofire/AlamofireImagehttps://github.com/SwiftyJSON/SwiftyJSONhttps://github.com/SwiftyJSON/Alamofire-SwiftyJSON 2018. 1. 11. 키보드관련 {//키보드 노티피케이션NotificationCenter.default.addObserver(self, selector : #selector(keyboardWillShow(noti:)),name:NSNotification.Name.UIKeyboardWillShow,object:nil)NotificationCenter.default.addObserver(self, selector : #selector(keyboardWillShow(noti:)),name:NSNotification.Name.UIKeyboardWillHide,object:nil)}//키보드가 올라올때func keyboardWillShow(noti:NSNotification){//키보드 높이let notiInfo = noti.userInfo! .. 2018. 1. 11. Carousel 관련 https://github.com/WenchaoD/FSPagerViewhttps://github.com/taglia3/TGLParallaxCarouselhttps://github.com/ZacharyKhan/ZKCarousel 3개의 후보군중에 FSPagerView적용https://github.com/WenchaoD/FSPagerView profile파일에pod "FSPagerView" 추가후 pod install Downloading dependenciesInstalling FSPagerView (0.7.1)Using SideMenu (3.1.5)Generating Pods projectIntegrating client project Sending stats 2018. 1. 10. 이전 1 ··· 7 8 9 10 11 12 다음