목록예전꺼(2014년이전꺼)/iOS (35)
liebus
뷰를 여러개 겹처서 만들어 놓고 뷰간의 이동을 어케 하는지 몰라서 삼일을 맨땅에 해딩했다 쩝... 내가 써본 것만 정리 해 봐야 긋다 뷰의 추가 또는 삽입 [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..