3.0beta 2つのTips
2.2.1 では動作するが、3.0beta4では空白の画面になる、ApplicationDelegateのコード。
3.0beta4で動作するコード。違いはwindowsの初期化をしていないことと、rootviewControllerのリリース位置が違う。
もうひとつのTip、MPMediaPlayerはsetQueueWithItemCollectionで再生する時には、シャッフルモードになっているときには動作しない。さもありなんというところか。
// Create the window
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Create the navigation and view controllers
MSSelectViewController *rootViewController = [[MSSelectViewController alloc] initWithDatabase:database];
navigationController = [[UINavigationController alloc]
initWithRootViewController:rootViewController];
[rootViewController release];
// Configure and show the window
[window addSubview:[navigationController view]];
// Override point for customization after application launch
[window makeKeyAndVisible];
3.0beta4で動作するコード。違いはwindowsの初期化をしていないことと、rootviewControllerのリリース位置が違う。
// Create the window
//window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Create the navigation and view controllers
MSSelectViewController *rootViewController = [[MSSelectViewController alloc] initWithDatabase:database];
navigationController = [[UINavigationController alloc]
initWithRootViewController:rootViewController];
// Configure and show the window
[window addSubview:[navigationController view]];
// Override point for customization after application launch
[window makeKeyAndVisible];
[rootViewController release];
もうひとつのTip、MPMediaPlayerはsetQueueWithItemCollectionで再生する時には、シャッフルモードになっているときには動作しない。さもありなんというところか。


コメントする