Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • CustomView ios tutorial

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3
    Comment on it

    HI guys,

    I'll help you add CustomView on a view Controller or on TableView or TableViewCell. This helps in reducing our code because it can be re used over a number of times.

    Create A empty file. Add View on it.

    // if you want to add supporting files (h and m) then you can add them or there is a other way of connecting the file owner to desired ViewController.

    sample code to add a customView on desired viewCont.

    ExampleCustomView *exampleCustomView=[[[NSBundle mainBundle]loadNibNamed:@"ExampleCustomView" owner:self options:nil] objectAtIndex:0];
    // add desired code here. 
                        [exampleCustomView setFrame:CGRectMake(0 , 33, 181, 157)];
    
                [exampleCustomView setTag:1];
                [cell addSubview:exampleCustomView];
    
    CustomViews ios

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: