본문 바로가기

개발도구/iOS - 아이폰 개발

[ios] 화면 세로 고정 ios - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } 검색에 주석된 위의 것을 주석을 풀면 된다고 하는데, 아무리 해도 안된다. 직접 찾아보니, 위와 같이 간단하게 처리 할수 있다. 더보기
[ios] 아이폰 디자인 가이드 http://www.idev101.com/code/User_Interface/sizes.html 더보기
[ios]시간, 애니메이션-그럼컷넘기기 // 애니메이션 - (void)viewDidLoad { imgView.animationImages=[NSArray arrayWithObjects: [UIImage imageNamed:@"lori.png"], [UIImage imageNamed:@"miranda.png"], [UIImage imageNamed:@"taylor.png"], [UIImage imageNamed:@"ingrid.png"], [UIImage imageNamed:@"kasey.png"], [UIImage imageNamed:@"wreckers.png"], nil]; imgView.animationDuration=20.0; imgView.animationRepeatCount=0; [imgView startAnimating]; [sel.. 더보기
[ios] view 투명설정 인터페이스 빌더에서 alpha 값을 조절하면 view 안의 전체 객체도 알파값이 먹어 투명하게 안되는것을 .. 찾다보니.. 아래처럼 간단하게 해결할수 있다.// 백드라운드만 불투명으로 설정 // White : 명암 (0.0f -> 1.0f : 검정색 -> 흰색) // alpha : 불투명도 (0.0f -> 1.0f : 투명 -> 불투명) [self.view setBackgroundColor:[[[UIColor alloc] initWithWhite:0.0f alpha:0.5f] autorelease]]; 더보기
[ios] image cache, 이미지 캐쉬 https://github.com/toptierlabs/ImageCacheResize SDWebImage-master.zip 반드시Copy SDWebImage and UIImage+Resize folders content to your project.Add the frameworks ImageIO.framework and MapKit.frameworkImport UIImageView+WebCache.h.해줘야 한다!! https://github.com/jakemarsh/JMImageCache 더보기
[iOS] View 이동 전환 하기 총정리 펌)http://www.digipine.com/programming/17108 뷰의 추가 또는 삽입 [self.view insertSubview:viewController.view atIndex:0]; [self.view addSubview:viewController.view]; [self presentModalViewController:viewController animated:YES]; --> 앤 모달뷰 [self.navigationController pushViewController:addView animated:YES]; 뷰의 순서 바꾸기[self.view bringSubviewToFront:self.tempViewController.view]; -> tempViewController.view를 .. 더보기
[iso] tableview Header - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 55; } Step 2: create & return the customized section header. - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *aView =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 55)]; UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom]; [btn setFrame:.. 더보기
[ios] 특정문자로 배열만들기 1)NSArray *array = [NSArray arrayWithObjects:@"saltfactory", "ruby", "iPhone", nil];NSString *str = [array componentsJoinedByString:@","];NSLog(@"%@", str); 2) NSString *list = @"Norman, Stanley, Fletcher"; NSArray *listItems = [list componentsSeparatedByString:@"/"]; 더보기
[ios]다른 클래스의 메소드 호출 출처 : http://www.chuckstar.com/blog/technology/iphone-sample-calling-methods-in-between-classes/ 지금 클래스 thisViewClass다른 클래스 otehrViewClass ** ThisViewClass#import "ThisViewClass.h" #import "OtherViewClass.h" @implementation ThisViewClass ~~~~다음, 다른 클래스의 메소드를 호출할 메소드를 작성한다.- (void) insideSomeMethod { [(OtherViewClass *)self.view setName:@"chuckstar"]; } ** OtherViewClasssetName 메소드를 OtherViewClass.. 더보기
[ios] tableview tutorial 강좌 http://adeem.me/blog/2009/05/19/iphone-programming-tutorial-part-1-uitableview-using-nsarray/ 더보기