저의 경우 탭바 형식에 네비게이션 컨트롤러를 넣어서 그 컨트롤러의 타이틀을 지정할때 사용하였습니다. 사용예제는 아래와 같습니다. - (id) initWithCoder:(NSCoder *)aDecoder { if (self=[super initWithCoder:aDecoder]) { self.title = @"INSERT Title NAME"; } return self; } 참고용으로 개발자 문서의 레퍼런스를 올립니다. NSCoding Protocol Reference Adopted by Various Cocoa classes Framework /System/Library/Frameworks/Foundation.framework Availability Available in iOS 2.0 and later..
UIPickerViewDataSource Protocol Reference Conforms to NSObject Framework /System/Library/Frameworks/UIKit.framework Availability Available in iOS 2.0 and later. Declared in UIPickerView.h Related sample code iPhoneCoreDataRecipes iPhoneMixerEQGraphTest LocateMe QuartzDemo OverviewThe UIPickerViewDataSource protocol must be adopted by an object that mediates between a UIPickerView object and your..
UIPickerViewDelegate Protocol Reference Conforms to NSObject Framework /System/Library/Frameworks/UIKit.framework Availability Available in iOS 2.0 and later. Declared in UIPickerView.h Related sample code iPhoneCoreDataRecipes iPhoneMixerEQGraphTest LocateMe QuartzDemo OverviewThe delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide th..
UIPickerViewDataSource 프로토콜을 따르면 반드시 구현해야 하는 메소드로써 해당 컬림의 줄 개수를 반환합니다. pickerView:numberOfRowsInComponent:Called by the picker view when it needs the number of rows for a specified component. (required) - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component ParameterspickerViewThe picker view requesting the data. componentA zero-indexed number identifying..
didSelectRowAtIndexPath는 TableView를 사용할 경우 지정된 행이 선택되었는지 알려줍니다. tableView:didSelectRowAtIndexPath: Tells the delegate that the specified row is now selected. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Parameters tableView A table-view object informing the delegate about the new row selection. indexPath An index path locating the new selected row i..
IBAction을 사용하여 버튼 터치를 통해 View간의 전환을 위한 소스입니다. AppDelegate.h 소스 ───────── #import @interface ChangeViewAppDelegate : NSObject { UIWindow *window; IBOutlet UIView *firstView; IBOutlet UIView *secondView; } -(IBAction) ChangeView; @property (nonatomic, retain) IBOutlet UIWindow *window; @end AppDelegate.m 소스 ───────── #import "ChangeViewAppDelegate.h" @implementation ChangeViewAppDelegate @synthesi..
TableControlViewController.h 파일 소스 (사용할 배열 정의) ────────────────────── #import @interface TableControlViewController : UIViewController { NSArray *listData; } @property (nonatomic, retain) NSArray *listData; @end ────────────────────── TableControlViewController.m 파일 소스 ────────────────────── #import "TableControlViewController.h" @implementation TableControlViewController @synthesize listData; /..
Xcode에서 처음 프로젝트를 생성하면 나오는 기본적인 화면구성 입니다. Groups & Files에 프로젝트에서 사용할 요소들이 모여있고 각 내용은 위 그림을 보시면 됩니다. ※ 가끔 빨간색으로 표시되는 항목이 나오는데 그것은 해당 파일이 존재하지 않는다는 의미입니다. 예를 들자면 Products에서 app 파일이 빨간색이라면 아직 컴파일을 하지 않아 파일이 생성되지 않았다는 의미입니다. 추. 이 포스트는 Xcode 3.2버전을 기준으로 작성되었습니다. OSX 라이언이 출시되면서 Xcode4도 무료가 되었지만 여전히 구버전 OS를 쓰는 경우엔 3.2버전이 무료로 사용 할 수 있는 Xcode 버전이므로 일단은 3.2로 정리하였습니다. Resources 안에는 xib이라는 파일이 있는데 이것은 인터페이스 ..
- Total
- Today
- Yesterday
- Object C
- MySQL
- Spring Framework
- 오브젝트 C
- iOS 개발
- iBATIS
- 아이폰 개발
- Spring
- zero
- 오블완
- SQL
- 아이폰 어플리케이션
- JavaScript
- 제이쿼리
- 자바
- Objective-C
- MAC OSX 10.7
- jQuery
- Programming
- Objective C
- Java
- 티스토리챌린지
- 오브젝티브 C
- IT
- iPhone
- JSP
- 아이폰
- 자바스크립트
- tomcat
- oracle
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |