SLCFunc 0.1.3

SLCFunc 0.1.3

Maintained by yang666.



SLCFunc 0.1.3

  • By
  • WeiKunChao

SLCFunc

Carthage compatible CocoaPods compatible License: MIT

辅助开发

pod 'SLCFunc' import <SLCFunc.h>

  1. Device
NSString *deviceName = SLCDeviceNameGet();
NSString *deviceModel = SLCDeviceModelGet();
NSUUID *UUID =  SLCDeviceUUIDGet();
NSString *systemName =  SLCDeviceSystemNameGet();
CGFloat systemVersion = SLCDeviceSystemVersionGet();

//....................More - SLCFuncDevice

NSLog(@"deviceName: %@, deviceModel: %@, UUID: %@, systemName: %@, systemVersion: %f",deviceName,deviceModel,UUID,systemName,systemVersion);
  1. animation
CABasicAnimation *basic = SLCBaseAnimationMake(SLCAnimationTypePositionX, SLCShowTypeDefault, 2, HUGE_VALF, NO, @(self.testView.frame.origin.x), @(300));

//...........More - SLCFuncAnimation
[self.testView.layer addAnimation:basic forKey:@"test"];


CATransition *transition = SLCTransitionMake(SLCShowTypeDefault, SLCTransitionTypeRippleEffect, SLCTransitionDirectionTypeDefault, 2, HUGE_VALF, YES);
self.imageView.image = [UIImage imageNamed:@"2.jpg"];
[self.imageView.layer addAnimation:transition forKey:@"transition"];

Alt text.

Alt text.

  1. Image
 UIImage * image = SLCImageColorMake(UIColor.yellowColor);
 
 //...........More - SLCFuncImage

..... 其他见源文件.