Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to used image instead of arrow #25

Open
krtya-softwares opened this issue May 21, 2015 · 1 comment
Open

How to used image instead of arrow #25

krtya-softwares opened this issue May 21, 2015 · 1 comment

Comments

@krtya-softwares
Copy link

In collapseClickArrow.m

  • (void)drawRect:(CGRect)rect method, can I used Image of arrow which was same work as collapseClickArrow ?

If yes then give me suggestion please

@jayjayesh
Copy link

(1) you need to add an imageView in CollapseClickCell.xib file same as TitleArrow view
(2) make outlet of that imageView in CollapseClickCell.h
(3) make TitleArrow view hidden in CollapseClickCell.xib
(4) set imageView image in CollapseClick.m

         -(void)openCollapseClickCellAtIndex:(int)index animated:(BOOL)animated
           {
                  cell.imgDropDown.image = [UIImage imageNamed:@"open.png"];
           }

        -(void)closeCollapseClickCellAtIndex:(int)index animated:(BOOL)animated
          {
             cell.imgDropDown.image = [UIImage imageNamed:@"close.png"];
          }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants