본문 바로가기

모바일개발(Mobile Dev)187

Navigation bar의 back button title 지정하기. by http://cruie.tistory.com/316 iOS 개발 이야기 2012/02/21 14:50Navigation bar의 back button title 지정하기.네비게이션 스택에 뷰가 쌓이면 네비게이션 바의 좌측에 뒤로가기 버튼이 생긴다. 여기에 타이틀은 따로 지정하지 않으면 이전 뷰의 타이틀이 된다. 이 타이틀을 수정하고 싶을 때는 해당 버튼이 나타나는 뷰에서 자신의 네비게이션 바에 무언가를 설정하는 것이 아니고 이전 뷰에서 설정을 해야한다. 이걸 몰라서 삽질 좀 했는데 알고나니 허무하기도 하고 당연해보이기도 하다. 현재 화면은 지금 활성화된 view controller랑 연결될 것이라고만 생각했는데 그게 너무 단순한 시각이었던 것이다. 다시말하면, navigation bar의 back .. 2015. 8. 15.
UITextField & UITextFieldDelegate UITextField UITextField *sampleTextField = [[UITextField alloc]initWithFrame:CGRectMake(10.0f, 10.0f, 150.0f, 40.0f)];// textfield를 alloc 해주고 Frame(위치)를 잡아준다. sampleTextField.delegate = self;// delegate 선언 sampleTextField.text = @"sample";// textfield에 지정된 단어를 넣어놓기위해(test 시 사용) sampleTextField.keyboardType = UIKeyboardTypeNumberPad;// textfield의 키패드 지정 sampleTextField.font = [UIFont systemFontOf.. 2015. 8. 14.
int NSInteger NSNumber 출처:: http://justgem.egloos.com/236216 - int : primitive data type - NSInteger : Foundation framework data type - NSNumber : NSNumber 클래스의 인스턴스 1. int는 C에서 왔고, primitive data type(보통 원시 데이터 타입이라고 번역한다.) 최대 값이 있는 숫자를 담을 변수에 보통 사용된다. 2. NSInteger는 현재 사용하고 있는 아키텍처(플랫폼)에 맞게 사이즈가 자동으로 설정되는 애플의 Foundation 프레임워크에 있는 특별한 primitive data type이다. NSInteger는 실제로 int를 재정의하고 있다.NSObjCRuntime.h?1234567#if __LP6.. 2015. 8. 14.
iOS: Storyboard, NIB(xib), Code 비교 by http://angelking.org/ios-storyboard-nibxib-code/ iOS: Storyboard, NIB(xib), Code 비교 Storyboard, NIB(xib), Code는 각각의 장단점이 있습니다. 이 글을 번역한 내용 정리입니다. 틈틈히 시간을 내어 번역, 정리 하며 작성하다 보니 중간 중간 글의 느낌이 변하지만 내용 파악엔 그닥 지장이 없을 것 입니다. 글이 너무 길어서 중간에 그냥 지워버릴 까 울컥울컥(…) 을 몇 번 했는지. 도움이 되시길. Storyboard Storybaord를 아주 큰 한 덩어리로 만들지 말자. – 기능/주제/메뉴 등등의 분류대로 분리된 여러 개의 스토리보드로 구현. – 여러 사람이 작업할 경우 conflict 발생 소지가 아주 높고, mer.. 2015. 8. 6.
xcode property 에 대해서 1. 프로퍼티에 대해서Objective-C의 프로퍼티가 있기 이전에는 getter/setter가 있었다. getter/setter는 자바와 같은 OOP언어에서 자주 쓰이는데 내부 변수 ( 멤버 변수 )를 외부에서 바로 값을 읽거나 변경하는 것을 피하기 위한 기법이다. 변수를 함수로 감싸서 읽거나 값을 변경할때 값을 검증하는 등의 일을 한다.getter/setter를 만드는 일을 정말 귀찮은 일이다. 비슷한 코드를 반복해서 써야 하고 코드가 길어져서 가독성도 떨어지게 한다.이 때문에 앱플에서는 2006년에 Objective-C 2.0을 발표하면서 이 부분을 개선하였다. 이른바 프로퍼티를 도입한 것이다. Objective-C 2.0에는 @property, @synthesize 키워드가 포함되었다. 이 키워드.. 2015. 5. 19.
SLIDING MENU DRAWER WITH CUSTOM SEGUES SLIDING MENU DRAWER WITH CUSTOM SEGUES12/19/2013· by ddtech24· Bookmark the permalink.·This post is not related to 10InARow but to an up and coming project that I’ve been working on that needed a sliding menu drawer. These seem all the rage at the moment and there are a number of open source components available to help you. My problem with these are that you need to maintain a lot of code when .. 2015. 3. 6.
slide menu github https://github.com/John-Lluch/SWRevealViewController 2015. 2. 16.
[Obj-C] 접근자 @property, @synthesize, @dynamic / retain, copy, assign, atomic, nonatomic [Obj-C] 접근자 @property, @synthesize, @dynamic / retain, copy, assign, atomic, nonatomic참고::http://maclove.pe.kr/28http://blog.outsider.ne.kr/604http://lambert.tistory.com/560 @property - 객체의 필드에 데이터를 설정하거나 설정된 내용을 참조하기 위해 사용한다. - @property 키워드는 프로퍼티를 선언한다. (getter, setter 메소드는 @synthesize 키워드로 자동 구현한다.)?1@property (readwrite, assign) BOOL enable; @synthesize - 개발자가 프로퍼티에 대한 getter, setter 메소드를 직접.. 2015. 1. 29.
activity tracking. what u need to know Toggle navigation iOS 8 Location, Motion and Activity Tracking. What you need to know. Besides being slick and sexy devices, iPads and iPhones offer access to a plethora of sensors that can be used to improve app concepts and user experiences or enable ones that were impossible before. This guide will get you up to speed by introducing you to the relevant APIs as well as giving you a solid backg.. 2015. 1. 28.