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

Operator Transformation 2.0: How to be reborn?

2014 was a special year for the domestic communic...

How long can eroticism, horror and bad taste sustain online movies?

On July 13, the online movie "The Scarecrow&...

Pass the four major NSCA certification courses

: : : : : : : : : : : : : : :...

How many stunning scenery are hidden at the northernmost tip of Taihu Lake?

My impression of Taihu Lake is that of blooming c...

Yunman Shengcai Utopia Xiaohongshu and Douyin tutorials

From Yunman’s money-making utopia, there are mult...

After 5G, why did 5G-A emerge?

At the 2024 Mobile World Congress held not long a...

Concrete operations: basic operation skills and common tools!

I often hear Internet professionals say: "Pro...

Basic interface - Get the WeChat server IP address

If the official account needs to know the IP addr...