Giter Club home page Giter Club logo

multicolumntableviewforios's People

Contributors

xenofex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

multicolumntableviewforios's Issues

scroll to row and column

Hi,

I have a table view with 5 columns and 20 rows. Is there a method to scroll to a particular row/column (e.g. scroll to column 3 and row 15)?

How to not show sections in table

Hi Xenofex,

I have been playing around with the grid and have been trying to find an easy way to not use sections.

What I have come up with, which I think needs some work is something like this:

In your example, I have modified viewDidLoad in MultiColumnTableViewController.m to look like this:

- (void)viewDidLoad
{
[super viewDidLoad];
    numberOfColumns = 5;
    numberOfRows = 30;
    numberOfSections = 1;

    colWidth = 240.0f;
    headerHeight = 100;
    headerWidth = colWidth;

    data = [[NSMutableArray alloc] initWithCapacity:numberOfRows];

    for (int i = 0; i < numberOfRows; i++) 
    {        
            NSMutableArray *rowArray = [NSMutableArray arrayWithCapacity:numberOfColumns];
            for (int j = 0; j < numberOfColumns; j++) {
                [rowArray addObject:text];
            }

            //[sectionArray addObject:rowArray];
        [data addObject:rowArray];        
    }


    tblView = [[EWMultiColumnTableView alloc] initWithFrame:CGRectInset(self.view.bounds, 5.0f, 5.0f)];
//    tblView.sectionHeaderEnabled = YES;
//    tblView.cellWidth = 100.0f;
//    tblView.boldSeperatorLineColor = [UIColor blueColor];
//    tblView.normalSeperatorLineColor = [UIColor blueColor];
//    tblView.boldSeperatorLineWidth = 10.0f;
//    tblView.normalSeperatorLineWidth = 10.0f;
    tblView.dataSource = self;
    tblView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
    [self.view addSubview:tblView];
}

and modified this method to just return the number of rows…

- (NSInteger)tableView:(EWMultiColumnTableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [data count];
}

Is there an easier and more readable way to not use sections and just have pure rows in the grid? I couldn't really see any other way with out extending the API a bit...

Also, is there a more dynamic way to calculate the width/height of the columns rather than hard coding them? Sorry I am new to iOS programming.

Thanks!

getting index of line rows...

Hi. I want to put a UIgesture to the rows that lines are written (not section). I mean "Line: (x,x)" ones. to do it, i have to get the index of the row which is tapped two times... How can i do it?
When i get "indexPath.row" it returns me, the last index of the value that appears on the screen, then if i scroll it down, the index changes again to another number and the value of lines are mixing all... can u suggest me anything about that? Thanks

Did select Row,

I used this library, looks good, but there is a problem, I could not get the didSelectRow, as I need row data on selection so that I can edit that row. any suggestion plz

Move cells from Rows to Column or Another Row

Hi,

Good Work & an excellent controller.

Right the application works fine, one wish to drag one whole column to another one.But , is it possible to move the single cell or selected from one Column to other column or row ?

I didn't find any delegate method which can trace the column & the Row for moving the cells herewith.

Also, I am now to Github, if there is something then pls let me know.

Thanks,

MultiColumnTableView scrolling slow

I have 2 columns that are horizontally scrollable next to the left stationary column. Scrolling vertically is not smooth. I've tried setting all labels opaque, as well as the tableview itself. Even leaving out the content in the cells it is slow.
Could it have something to do with the UIViews being created for each cell occurrence?

Maybe ReloadData bug

Hi, when request reloadData the cell UiView will not recreate only header dimension will recreate, so if i want change column number, cells data are wrong positioned also wrong dimension.
Thanks

Scroll to column

Hi,

Great work.

Is it possible to programatically scroll the table to a particular column?

MultiColumnTableViewViewController resize width problem

I have a MultiColumnTableViewViewController inside other controller.
If try to change resize this controller, the behavior is wrong.
For example,

With this part of code:

MultiColumnTableViewViewController* tabla = [[MultiColumnTableViewViewController alloc] initWithNibName:@"MultiColumnTableViewViewController" bundle:nil];
tabla.view.frame = CGRectMake(20, 20, 600, 400);
[child1.view addSubview:tabla.view];

and this part:

MultiColumnTableViewViewController* tabla = [[MultiColumnTableViewViewController alloc] initWithNibName:@"MultiColumnTableViewViewController" bundle:nil];
tabla.view.frame = CGRectMake(20, 20, 601, 400);
[child1.view addSubview:tabla.view];

the size of MultiColumnTableViewViewController change radically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.