Like effect button

Like effect button

Source code introduction: A button with the same effect as the like button in most applications, very convenient to use

Source code renderings:

Source code snippet:

  1. <br>
  2. <br>
  3. # import   "CatZanButton" <br>
  4. <br>
  5. CatZanButton *zanBtn=[[CatZanButton alloc] initWithFrame:CGRectMake( 0 , 0 , 50 , 50 ) zanImage:[UIImage imageNamed:@ "Zan" ] unZanImage:[UIImage imageNamed:@ "UnZan" ]];<br>
  6. [zanBtn setCenter:self.view.center];<br>
  7. [self.view addSubview:zanBtn];<br>
  8. <br>
  9. [zanBtn setClickHandler:^(CatZanButton *zanButton) {<br>
  10. if (zanButton.isZan) {
  11. //Do something<br>  
  12. } else {<br>
  13. //Do something<br>  
  14. }<br>
  15. }];<br>
  16. <br>

Download address: http://download..com/data/2068592

<<:  Xiaomi Vice President: Open-sourcing Android is the smartest decision Google has made

>>:  Top sliding menu FDSlideBar

Recommend

How to plan an excellent online event?

In Philip Kotler's book " Marketing Mana...

What are the product methods to improve user retention?

Recently I saw a written test question that requi...

How can I know who is the developer of a mini program?

Q: How can I know who is the developer of a certa...

How to apply for WeChat Small Store? The application process is as follows

WeChat officially announced on August 20 that WeC...

4 steps to make users addicted to your product instantly!

How to make users addicted to you? Why do users k...

What are the things to pay attention to when recruiting app developers?

Recruitment is a difficult task for many companie...

iPhone 6 is not new to Chinese users

Several people familiar with the Chinese mobile d...