ViewController to TabBarController...
2011-02-28 15:20:23

I've just completed pretty much the same and ran into the same problems but eventually I got it working.

Create a View Controller class in Xcode called Test1ViewController and add the following:

@interface Test1ViewController : UIViewController {

IBOutlet UITabBarController *tbc;

}

@property (nonatomic,retain) IBOutlet UITabBarController *tbc;

@end

Create a View XIB called Test1View

Add a TabBarViewController to the XIB

Set the File's Owner in the XIB to be the Test1ViewController.

Connect the tbc IBOutlet in the File's Owner to the Tab Bar Controller in the XIB.

Connect the view IBOutlet in the File's Owner to the View in the XIB.

In your SplashViewController.h add the property

Test1ViewController *tabBarViewController;

Synthesize the tabBarViewController in your SplashViewController.m.

Replace your TabBarController creation code in your loadView method in SplashViewController with the following:

tabBarViewController = [[Test1ViewController alloc] initWithNibName:

@"Test1View" bundle:[NSBundle mainBundle]];

tabBarViewController.view.alpha = 0.0;

[self.view addSubview:[tabBarViewController view]];

Here's the bit that was missing for me. In Test1ViewController.m, you need to add the following line to the viewDidLoad method:

self.view = tbc.view;

Finally, I also had to change the finishedFading method in SplashViewController.m to set the alpha to 1.0 on the tabBarViewController view.

-(void) finishedFading

{

[UIView beginAnimations:nil context:nil];

[UIView setAnimationDuration:0.75];

self.view.alpha = 1.0;

tabBarViewController.view.alpha = 1.0;

[UIView commitAnimations];

[splashImageView removeFromSuperview];

}

I hope this helps.

SpashView는 TabBarViewController를 불러올 화면이다.

▼ more
아이폰에 겁먹지 말자 ㅠ
2011-02-28 15:18:49

늘상 처음하는 환경엔 겁먹고 시작하는 지라 이번에도

==와 =를 헷갈리고 나서 엉뚱한 데서 문제를 찾는가하면

이번에도 역시나!! 거의 오고나서 마지막에 헤맸다

TabBarController를 View왁 같이두고 TabBarController의 뷰를 바꿔주면 되는 것을!!

자세한 것은 위에 적는다.

▼ more
post graduate school credit
2011-02-28 10:33:53

1. medical basic : 6/6

2. medical informatics : 6/6

3. medical : 3/6

4. paper : 3/6

5. research morality : 0/2

next semester medical 3 r.m 2 + cs 3

next, next semester cs3 paper3?

▼ more
study ^^
2011-02-26 16:02:44

새학기 시작 마지막 휴일.

삼일절이 있다지만 ㅋ

2월에 마무리 해야할 일 몇가지

논문 수정본 마무리, 스터디, 그리고 아이폰 개발 ㅋ

금요 세미나 준비로 제대로 마무리 하지 못했던 3가지를 이제 놔주어야 할 때가 되었으니

놓아주기전에 마무리를 깔끔하게^^

▼ more