three20 如何将three20中的demo添加到自己的应用程序中。

1:参考地址:http://stackoverflow.com/questions/8324516/three20-photo-viewer-customization

 

- (void) viewDidLoad {

   
[[TTURLRequestQueue mainQueue] setMaxContentLength:0];

   
TTNavigator *navigator = [TTNavigator navigator];
   
UIWindow *window = [UIApplication sharedApplication].keyWindow;
    navigator
.window = window;

   
TTURLMap *map = navigator.URLMap;
   
[map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];

   
[navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://appPhotos"]];

    self
.photoSource = [PhotoSet samplePhotoSet];
}

 

 

 

posted on 2011-12-17 15:57  wtq  阅读(387)  评论(0编辑  收藏  举报