PullToRefresh icon indicating copy to clipboard operation
PullToRefresh copied to clipboard

Hard-Coded sizes

Open avrahamshukron opened this issue 14 years ago • 0 comments

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)];

avrahamshukron avatar Jan 08 '12 12:01 avrahamshukron