BLKFlexibleHeightBar icon indicating copy to clipboard operation
BLKFlexibleHeightBar copied to clipboard

Problems synchronising the bar with table view scrolling.

Open aki263 opened this issue 9 years ago • 0 comments

I am not able to synchronising my tableview with the scrolling of the appbar. I am new into ios developement and only use programming(no interface builders or storyboard), so I need to Know amethod by which i can change the 'y' of the frame of my table w.r.t. the bar size changes , maybe a delegate method.

here is alittle snippet....

myBar = [[BLKFlexibleHeightBar alloc] initWithFrame:CGRectMake(0.0, 20.0, self.view.frame.size.width, 100.0)]; myBar.minimumBarHeight = 50.0; myBar.behaviorDefiner = [SquareCashStyleBehaviorDefiner new]; myBar.backgroundColor = [UIColor colorWithRed:0.86 green:0.25 blue:0.23 alpha:1]; [myBar.behaviorDefiner addSnappingPositionProgress:0.0 forProgressRangeStart:0.0 end:0.5]; [myBar.behaviorDefiner addSnappingPositionProgress:1.0 forProgressRangeStart:0.5 end:1.0]; [self.view addSubview:myBar];

address_table=[[UITableView alloc]initWithFrame:CGRectMake(0, myBar.frame.origin.y, DEVICE_SIZE.width, DEVICE_SIZE.height-(myBar.frame.origin.y))]; address_table.backgroundColor=[UIColor clearColor]; [address_table setSeparatorStyle:UITableViewCellSeparatorStyleNone]; address_table.contentInset = UIEdgeInsetsMake(myBar.maximumBarHeight, 0.0, 0.0, 0.0);

[address_table setDelegate:self]; self.delegateSplitter = [[BLKDelegateSplitter alloc] initWithFirstDelegate:myBar.behaviorDefiner secondDelegate:self]; address_table.delegate = (id<UITableViewDelegate>)self.delegateSplitter; [address_table setDataSource:self]; [address_table reloadData]; [self.view addSubview:address_table];

Here is the screenshot.... Please help..

img_0026 1

aki263 avatar Oct 29 '15 11:10 aki263