Hi Sal,
Currently this feature is not available out of the box in TKSideDrawer. You should adopt TKSideDrawerDelegate and implement its sideDrawer:cellForItemAtIndexPath: method to replace the default TKSideDrawerTableViewCell: with a custom one. After that you can use layoutSubviews method in your custom cell to set the right frame for the imageView. Consider the following code snippet:
I think that this will be a nice addition to our TKSideDrawer and I logged it in our feedback portal. You can use the following link to track the issue status and vote/comment on it. Your Telerik points are updated accordingly.
Should you have other questions, do not hesitate to ask.
Regards,
Jack
Telerik
Currently this feature is not available out of the box in TKSideDrawer. You should adopt TKSideDrawerDelegate and implement its sideDrawer:cellForItemAtIndexPath: method to replace the default TKSideDrawerTableViewCell: with a custom one. After that you can use layoutSubviews method in your custom cell to set the right frame for the imageView. Consider the following code snippet:
- (
TKSideDrawerTableViewCell
*)sideDrawer:(
TKSideDrawer
*)sideDrawer
cellForItemAtIndexPath
:(
NSIndexPath
*)indexPath;
{
MySideDrawerCell
*cell = [[
MySideDrawerCell
alloc]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
@"cell"
];
NSArray
*sections = sideDrawer
.sections
;
TKSideDrawerSection
*section = sections[indexPath
.section
];
TKSideDrawerItem
*sideDrawerItem = section
.items
[indexPath
.row
];
cell
.item
= sideDrawerItem;
return
cell;
}
@interface
MySideDrawerCell : TKSideDrawerTableViewCell
@end
@implementation
MySideDrawerCell
- (
void
)layoutSubviews
{
[
super
layoutSubviews
];
self
.imageView
.frame
=
CGRectMake
(
100
,
5
,
20
,
20
);
}
@end
I think that this will be a nice addition to our TKSideDrawer and I logged it in our feedback portal. You can use the following link to track the issue status and vote/comment on it. Your Telerik points are updated accordingly.
Should you have other questions, do not hesitate to ask.
Regards,
Jack
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items