입력란에 포커스가 있을때, 키보드가 보일때, 다음 구문으로 키보드를 숨길 수 있다: [self.textBox resignFirstResponder]; //If keyboard visible, remove keyboard 위 예에서 입력란은 포커스를 지닌 UITextField 다. 포커스를 지닌 UITextField에게 포커스를 놓으라는 명령을 한 것이다. 만약 폼에 많은 입력란이 있다면 모두 “resignFirstResponder”를 해줘야 할까? 뷰에 있는 모든 입력란에 포커스를 놓으라!를 쉽게 하는 방법이 있다. 코드는 다음과 같다: [self.view endEditing:TRUE]; //Resign firstresponder for all textboxes on the view [출처] http:/..
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];
- Total
- Today
- Yesterday
- Prototype
- IE
- JSON
- nginx
- Docker
- git
- javascript
- macos
- laravel
- centos
- Android
- Wordpress
- Mac
- ASP
- mssql
- iis
- sencha touch
- 한글
- IOS
- Linux
- iphone
- API
- CSS
- 안드로이드
- nodejs
- classic asp
- 워드프레스
- JQuery
- PHP
- Debug
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |