1.FRDLiveLyButton

Use FRDLiveLyButton animated button, FRDLiveLyButton

A practical method

  • 1. Set the style
  • 2: setOptions method to set the appearance

2. KeyValue based on FMDB

Tang Qiao based on FMDB keyValue mode storage, value is JSON format or dictionary array model can be considered for storage

3.LazyFadeInView

LazyFadeInView is very cool, in the form of an animation to display a label.

Using LazyFadeInView, create a LazyFadeInView and add it to your view. It will be animated automatically.

code

	LazyFadeInView *fadeInView = [[LazyFadeInView alloc] initWithFrame:CGRectMake(20, 120, 280, 200)];
	self.fadeInView.text = @"Stray birds of summer come to my window to sing and fly away.";
	self.fadeInView.textColor = [UIColor whiteColor];
	[self.view addSubview:self.fadeInView];
Copy the code

4.YLGIFImage

Asynchronous loading GIF image class, support GIF image play and pause. It uses very little memory, fully decoding a GIF normally consumes 600MB of memory (800x600x389x4 Bytes), but if you use YLGIFImage, it only takes up 30MB.

The GIF above. IOS crashes when it loads, but with YLGIFImage, it doesn’t.

YLImageView* imageView = [[YLImageView alloc] initWithFrame:CGRectMake(0, 160, 320, 240)];
[self.view addSubview:imageView];
imageView.image = [YLGIFImage imageNamed:@"joy.gif"];

Copy the code

5. Use of SDCycleScrollView

  • The use of SDCycleScrollView wheel cast diagram:
  • Initialization method, given location, what data source, image URL
  • If appear at the top of the blank area: set up the self. AutomaticallyAdjustsScrollViewInsets = NO
  • The dot custom interface of Pagecontrol is changed to currentPageDotColor, pageDotColor, currentPageDotImage, pageDotImage
  • Set the defined title, proxy, and interval
/ / network load images of shuffling SDCycleScrollView * cycleScrollView = [cycleScrollViewWithFrame: frame delegate: delegate placeholderImage:placeholderImage]; cycleScrollView.imageURLStringsGroup = imagesURLStrings; / / local loading pictures of shuffling SDCycleScrollView * cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame: imagesGroup: image array];Copy the code
/ / set the pageControl right, centered by default cycleScrollView. PageControlAliment = SDCycleScrollViewPageContolAlimentRight; / / if the set, the title array may be in the picture below to add title cycleScrollView. The title titlesGroup = array (the number of array elements must be consistent with image array element number). // Set the delegate method cyclesCrollView.delegate =; / / custom wheel sowing time interval cycleScrollView autoScrollTimeInterval =;Copy the code