본문 바로가기

분류 전체보기76

[iOS/Swift] 페이스북 아이디로 로그인 하기 * 페이스북 개발자 사이트 [https://developers.facebook.com/docs/facebook-login/ios/] 참고! 히이 페이스북도 어렵다데스.. stackoverflow에는 죄다 영어로 쏼라쏼라 여러시간 삽질하다가 이것도 잊어먹을까봐 포스팅 고고고!! 1. 일단 Facebook SDK를 설치한다.다행이도 이것은 swift 버전이 존재한다!! 할렐루야~~일단 Podfile에 sdk를 추가하고 pod install 한다! target 'AppName' dopod 'FacebookCore'pod 'FacebookLogin'pod 'FacebookShare'end post_install do |installer|installer.pods_project.targets.each do |ta.. 2017. 5. 17.
[iOS/Swift] 네이버 아이디로 로그인 하기 Naver Developers [https://developers.naver.com] 참고하여 로그인 연동하기 1. 일단 iOS용 네이버 라이브러리를 다운받는다.폴더를 하나 생성하여 다 넣어버린다.나의 경우에는 아래처럼 넣어버렸다. 2. 그리고 Bridging-Header 를 만든다.Naver SDK는 현재 오브젝티브 씨 기반으로 되어있는데,내가 사용하는 언어는 Swift이기때문에.. 한 프로젝트 내에서 오브젝티브 씨와 Swift를 함께 사용하기 위해 만드는 파일이다.이 파일은 오브젝티브씨로 된 파일을 스위프트로 변형(?)하여 스위프트 파일 내에서 사용할 수 있다. 브릿징 헤더 만드는 법은 다른 블로그에도 친절히 설명되어있으니 ! 참고하시길!http://seorenn.blogspot.kr/2014/07/.. 2017. 5. 16.
Xcode 8.2.1 crashes on opening project with array index out of bounds 하..갑자기 xcode가 8.2.1로 업데이트가 되면서 프로젝트가 열리자마자 닫히는 현상이 발생했다.. 당황해서 google에게 물어보니 http://apple.stackexchange.com/questions/265637/xcode-8-2-1-crashes-on-opening-project-with-array-index-out-of-bounds 누군가도 이렇게 오류가 났다고 한다.. 저렇게 해보았지만 되는건 하나도 없엇따.. 그래서 프로젝트 git에 다 중간커밋 해놓고, 프로젝트 삭제 후 다시 내려받아 실행해 보앗더니 됬다.. 개빡친다.. 2016. 12. 23.
UILabel 안에 아이콘 넣기 let attachment = NSTextAttachment() attachment.image = UIImage(named: "yourIcon.png") let attachmentString = NSAttributedString(attachment: attachment) let myString = NSMutableAttributedString(string: price) myString.appendAttributedString(attachmentString) label.attributedText = myString 2016. 11. 18.
String의 부분 속성 바꾸기 : NSMutableAttribueString String의 부분 부분 속성을 바꾸고 싶다면! let attributedString = NSMutableAttributedString(string: "총 12 건")attributedString.addAttribute(NSForegroundColorAttributeName, value: UIColor.rgba(123, 124, 125, 255), range: NSRange(location: 0, length: 1))attributedString.addAttribute(NSForegroundColorAttributeName, value: UIColor.rgba(123, 124, 125, 255), range: NSRange(location: attributedString.length - 1 , lengt.. 2016. 10. 24.
반응형