uiscrollview not scrolling horizontally

Posted by Futur on Stack Overflow See other posts from Stack Overflow or by Futur
Published on 2010-05-01T00:06:07Z Indexed on 2010/05/01 0:07 UTC
Read the original article Hit count: 194

Filed under:
|
|

My UIScrollView below is not scrolling horizontally, Please help me here..

FirstView = [[UIView alloc] initWithFrame:CGRectMake(60, 0, 100, 150)];
    [FirstView setBackgroundColor:[UIColor clearColor]];

    SecondView = [[UIView alloc] initWithFrame:CGRectMake(320+60, 0, 100, 150)];
    [SecondView setBackgroundColor:[UIColor clearColor]];

    HolderView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 1000, 150)];

    scrHorizontalScroll = [[UIScrollView alloc]initWithFrame:HolderView.frame];
        [scrHorizontalScroll setBackgroundColor:[UIColor redColor]];
    [scrHorizontalScroll setContentSize:CGSizeMake(999, 150)];
    [scrHorizontalScroll setScrollEnabled:YES];
    [HolderView addSubview:scrHorizontalScroll];

The HolderView is not scrolling horizontally but which happen, please help

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk