iOS쪽에서 쓸만한 공유 라이브러리인 ShareKit 과 AddThis 중 국내에서 많이 쓰고 있는 ShareKit v0.2.1 버젼의 샘플 프로젝트를 iOS5에서 테스팅하는데 타이틀바 좌측 상단의 [Cancel] 버튼을 눌러도 아무런 응답이 없었다. 뭐야이게~ 구글 검색~! https://github.com/ideashower/ShareKit/issues/254 (영문) 위 웹페이지의 답변을 주욱 보다 보면 btedev 님이 해결법과 패치된 소스를 알려주신다. https://gist.github.com/1281191 에서 브라우저 찾기를 이용해서 dismissModalViewControllerAnimated 관련 부분 2곳을 찾아 자신의 소스를 고쳐주면 된다. 를 아래 정리해 보겠다. Xcode4 좌측..
- 부모 뷰 컨트롤러 : ParentViewController - 자식 뷰 컨트롤러 : ChildViewController 로 정의하고 시작. 부모에 delegate @protocol 선언 자식에서 같은 @protocol 코딩 자식에서 부모에서 선언한 delegate 따른다고 선언 자식에서 해당 delegate를 통하여 부모의 object 제어 ParentViewController.h : #import @protocol ParentViewDelegate - (void)didReceiveMesssge:(NSString *)message; @end @interface ParentViewController : UIViewController @property (nonatomic, retain) IBOutlet ..
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; } cell.imageView.image ..
Xcode 4.2 에서 하위 버젼 호환을 위해 프로젝트의 Deployment Target 를 3.2 로 맞추고 xib 들도 모두 File Inspector (option + command + 1) > Document Versioning 들을 3.2로 맞추고 빌드중 제목의 경고문구를 맞이했다. http://stackoverflow.com/questions/7625731/xcode-4-2-warnings-when-dropping-nav-controller-on-tab-bar-in-ib 의 jkira 답변을 보면 MainWindow.xib 를 선택 > 경고를 뿌리는 컨트롤러 선택 > Attribute Inspector (option + command + 1) > View Controller 섹션 > Prese..
// Customize the appearance of table view cells. -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellI..
iOS에서 엔티티 문자를 > -> > ' 와 같이 변경(디코딩)하는 법 MWFeedParser 에서 프로젝트를 다운받은 뒤 압축을 풀고 GTMNSString, NSString+HTML, NSString+XMLEntities *.h, *.m 파일들 만들고 있는 프로젝트 그룹(폴더)에 드래그하여 추가해준다. 이후 아래와 같은 메쏘드들을 사용하면 된다. NSString category for HTML. Here are the methods available: - (NSString *)stringByConvertingHTMLToPlainText; - (NSString *)stringByDecodingHTMLEntities; - (NSString *)stringByEncodingHTM..
NSString *msg = nil; msg = @"경고창 메세지 입니다."; UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Something was done" message: msg delegate: self cancelButonTitle: @"취소" otherButtonTitles: nil]; [alert show]; [alert release]; [msg release];
.h 파일에 ...... @interface Control_FunViewController : UIViewCotroller { ...... .m 파일에 UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle: @"Are you sure?" delegate: self cancelButtonTitle: @"No Way!" destructiveButtonTitle: @"Yes, I'm Sure!" otherButtonTitles: nil]; [actionSheet showInView:self.view]; [actionSheet release];
원본링크: XCode4: UITabBarController with UINavigationController using Interface Builder 1. 새 프로젝트 생성 Tab Bar Application 으로 시작합니다. 2. 탭바 선택 MainWindow.xib 클릭하고 통합된 Interface Builder 왼쪽의 Objects 구역에서 Tab Bar Controller 선택. 3. Navigation Controller 추가 화면 오른쪽 구석에서 Utilities box 클릭하고 Navigation Controller 찾아서 Tab Bar 중 중간 탭 안으로 드래그. 중간 탭으로 추가한것을 보실 수 있습니다. 4. 새 탭 설정 Objects section으로 돌아가서 Navigation Co..
- Total
- Today
- Yesterday
- Debug
- Linux
- iis
- mssql
- CSS
- API
- centos
- Prototype
- iphone
- javascript
- nodejs
- 안드로이드
- Wordpress
- git
- Android
- JQuery
- classic asp
- nginx
- 워드프레스
- IOS
- ASP
- IE
- sencha touch
- laravel
- Mac
- 한글
- Docker
- PHP
- macos
- JSON
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |