系统
SuperFashionQueen
这个作者很懒,什么都没留下…
展开
-
改变系统的UIAlert的字体色彩
#import @interface WAlertAction : UIAlertAction@property(strong,nonatomic)UIColor *titleColor;@end@interface WAlertController : UI转载 2016-09-19 17:56:44 · 437 阅读 · 0 评论 -
取得uuid并且放进钥匙串
CFUUIDRef uuid = CFUUIDCreate(nil ); CFStringRef uuidString =CFUUIDCreateString( nil, uuid ); NSString * result = (NSString *)CFBridgingRelease(CFStringCreateCopy(NULL, uuidStrin原创 2016-10-09 16:14:44 · 353 阅读 · 0 评论 -
iOS清除UserDefaults存储空间
NSString *appDomainStr = [[NSBundlemainBundle] bundleIdentifier]; [[NSUserDefaultsstandardUserDefaults] removePersistentDomainForName:appDomainStr];转载 2016-12-30 15:16:44 · 1084 阅读 · 0 评论 -
ios弹簧动画
看了facebook出品的pop动画库后,发现其中的弹簧效果很给力,但有些人也许不喜欢再去引入别的库,因此Google了一下发现其实Apple自带的API就能实现这种弹簧效果:API:(iOS7后可用)+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInt转载 2017-02-07 18:03:14 · 341 阅读 · 0 评论 -
拿到贴过贴纸的UIImage
+ (UIImage *)getImageFromView:(UIView *)theView{ CGSize orgSize = theView.bounds.size ; UIGraphicsBeginImageContextWithOptions(orgSize,NO, 1); [theView.layerrenderInCont原创 2017-02-13 14:27:50 · 450 阅读 · 0 评论 -
设置-通用-辅助功能-按钮形状后所有按钮会加上下划线,本文的目的是去掉这些下划线
#import "UIButton+DelectLine.h"#import BOOL wel_buttonShapesUnderline(idself, SEL_cmd) { returnNO;}@implementation UIButton (DelectLine)+(void)load { Meth转载 2017-09-14 16:00:37 · 1401 阅读 · 0 评论 -
给文字加描边,文字中加图片
NSMutableAttributedString *attribute = [[NSMutableAttributedStringalloc]initWithString:self.listArray[indexPath.row] attributes:@{NSStrokeColorAttrib原创 2017-10-10 15:10:59 · 823 阅读 · 0 评论