开发者

Calling init method of a UITableViewController instance with Three20's navigation modell

开发者 https://www.devze.com 2023-02-26 00:26 出处:网络
i have a UITableViewController subclass instance called MainTableViewController within a three20 project. the mapping is set up like this:

i have a UITableViewController subclass instance called MainTableViewController within a three20 project. the mapping is set up like this:

[map from:@"tt://catalog" toViewController:[MainTableViewController class]];

after updating to xcode 4 and the current three20 v1.0.5. MainTableViewController's init method is not called anymore. Does anyone have a hint how to map to a view controller's init method without a parameter:

@implementation MainTableViewController
- (id)init{

The 开发者_Go百科intro page to three20-style navigation points out the no init case and the paramter case : http://three20.info/article/2010-10-06-URL-Based-Navigation

am i missing something here?


Three20 expects that you use the designated initializer for UIViewControllers:

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
0

精彩评论

暂无评论...
验证码 换一张
取 消