본문 바로가기

xcode6

iOS 개발 자료 -푸쉬 서버 개발 관련 자료- 이지 APNS 오픈 소스 라이브러리 http://www.easyapns.com/ 구글 코드 APNS 오픈 소스 http://code.google.com/p/apns-php/ 서버 튜토리얼 http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ -label이나 textView에 현재 시간을 표시하고 싶습니다- NSDate *t = [NSDate date]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; NSString *timeStr = [formatter setDateFormat:@"HH.. 2016. 9. 21.
xcode table cell dynamic height(테이블뷰 동적높이) viewDidLoad self.table.estimatedRowHeight = 44.0 ;self.table.rowHeight = UITableViewAutomaticDimension; -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{return UITableViewAutomaticDimension;} 2016. 9. 20.
테이블뷰 다음페이지 불러오기 willDisplayCell *코드 설명- 파싱데이터 셀에 뿌려주는 형식이며 20개씩 불러오고 총 데이터가 20개 이상일 numberOfRowsInSection 카운트 +1 해준다. More 버튼을 넣기 위해서.. - 만약 More 버튼 없이 구현하기 위해서는 아래 데이터의 [getData count]를 [getData count] -1 로 해주면 된다. (다음 데이터가 없을 시 예외처리) -(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { //다음 데이터 로드 if (indexPath.row == [getData count]) .. 2016. 9. 5.
tableview row insert - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { NSInteger maxPurchaseListCountInPage = 0; UIInterfaceOrientation orientation = [[UIApplicationsharedApplication] statusBarOrientation]; if( [SystemInfo isPad] ){ if( UIInterfaceOrientationIsLandscape(orientation) ){ }else{ } }else if( [SystemInfo isPhone5] ){ if( UIInte.. 2016. 9. 5.