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];
}

 

 

 

你可能感兴趣的:(demo)