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

Six JavaScript frameworks that developers should know

With the rapid development of the Internet, mobil...

Why didn’t QQ die out like MSN under the strong impact of WeChat?

QQ is the social platform with the largest number...

Complete review: How to write an attractive information flow idea?

Recently, I did information flow promotion for a ...

After 4 tests, how is iOS 15 doing now? Experienced people reveal 3 details

After 4 tests, can iOS15 be used normally now? Pe...

Five rules to start your growth hacking journey

The Origins of Growth Hacking Originated from Sil...

Pick-up master Liang Shu "Stealing Heart Chat Method Plus" Baidu Cloud Download

Resource introduction of the pick-up master Liang...

How to build e-commerce live streaming 0-1?

How did a successful e-commerce live broadcast co...

SEO trends in 2019: How to do SEO in 2019?

SEO trends in 2019: How to do SEO in 2019? I was ...

Why can’t Airmate become the “small appliance version” of Gree?

According to the market penetration rate of small ...