Posted
Filed under iphone
[원문] : http://b4you.net/blog/203

 (void)applicationDidFinishLaunching:(UIApplication *)application {    
    CGRect rcScreen;
    CGRect rcMapView;
     
    rcScreen = [[UIScreen mainScreen] bounds];
    rcMapView = CGRectMake(0.0, 0.0, 2000.0, 2000.0);
     
    scrollView = [[UIScrollView alloc] initWithFrame:rcScreen];
    [scrollView setScrollEnabled:YES];
     
    mapView = [[UIMyScrollView alloc] initWithFrame:rcMapView];
    [mapView setBackgroundColor:[UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1.0]];
     
    // 여기서 실제 scroll 되는 영역을 구한다
    [scrollView setContentSize:rcMapView.size];
     
    [scrollView addSubview:mapView];
    [window addSubview:scrollView];
     
    [mapView release];
    [scrollView release];
     
    // Override point for customization after application launch
    [window makeKeyAndVisible];
}
2011/11/21 15:34 2011/11/21 15:34