목록분류 전체보기 (166)
liebus
상위view에서 하위view 만들때 delegate를 이용하자 self.downViewController = [[DownViewController alloc] initWithNibName:@"DownView" bundle:nil]; self.downViewController.delegate = self; ... 하위view에서 상위view의 Controller사용 [delegate presentModalViewController:self.downTwoViewController animated:YES]; 이래 하면 delegate가 상위view의 Controller가 됨 이거 몰라서 3일 해맸나? 젠장 ... 잊어버리지 말자 이거 까먹으면 짱구 -_-; 현재 작업하는 어플이 뷰가 3단개로 이루워져 있다 1..
뷰를 여러개 겹처서 만들어 놓고 뷰간의 이동을 어케 하는지 몰라서 삼일을 맨땅에 해딩했다 쩝... 내가 써본 것만 정리 해 봐야 긋다 뷰의 추가 또는 삽입 [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.vie..
TargetViewController *viewController = [[TargetViewController alloc] init]; [viewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; [self presentModalViewController:viewController animated:YES]; [viewController release]; 모닯뷰 에니 효과 UIModalTransitionStyleCoverVertical : 모달 뷰가 아래서 위로 덮으며 전환(기본값) UIModalTransitionStyleFlipHorizontal : 앞면의 부모 뷰가 회전되어 뒷면의 모달 뷰로 전환 UIModalTransit..
Navigation 의 title역영을 버튼으로 활용 -(void) viewDidLoad() { self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addSchedule:)]; NSArray *scheduleContent = [NSArray arrayWithObjects: NSLocalizedString(@"Today", @""),NSLocalizedString(@"Month", @""), NSLocalizedString(@"List", @""),nil]; UISegmentedControl *s..