Skip to content

Hard-Coded sizes #15

@avrahamshukron

Description

@avrahamshukron

in addPullToRefreshHeader method, all the sizes are hard-coded which is really bad.

For example,
refreshHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0 - REFRESH_HEADER_HEIGHT, 320, REFRESH_HEADER_HEIGHT)];

Should be:
CGSize tableViewSize = self.tableView.frame.size;
refreshHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0 - REFRESH_HEADER_HEIGHT, tableViewSize.width, REFRESH_HEADER_HEIGHT)];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions