摘要:
内存分区及block的存储位置 阅读全文
摘要:
CheckCodeSliderView.h文件 @interface CheckCodeSlider : UISlider@end@interface CheckCodeSliderView : UIView-(void)showCheckCodeSlider;@property (nonatomi 阅读全文
摘要:
App Transport Security 阅读全文
摘要:
tableView在iOS11默认使用Self-Sizing tableView的estimatedRowHeight、estimatedSectionHeaderHeight、 estimatedSectionFooterHeight三个高度估算属性由默认的0变成了UITableViewAutom 阅读全文
摘要:
一、NSTimer的创建 // 创建一个定时器,但是么有添加到运行循环,我们需要在创建定时器后手动的调用 NSRunLoop 对象的 addTimer:forMode: 方法。 + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti invocat 阅读全文
摘要:
使用AVAudioPlayer播放本地音乐文件。 1、声明全局AudioPlayer变量: @property(nonatomic,strong)AVAudioPlayer *movePlayer ; 2、初始化变量并播放: NSString *tmp=[[NSBundle mainBundle]. 阅读全文
摘要:
一、JS调用原生OC两种方法 方式一 第一种方式是用JS发起一个假的URL请求,然后利用UIWebView的代理方法拦截这次请求,然后再做相应的处理。下面是一个简单的HTML网页和一个btn点击事件用来与原生OC交互 HTML代码如下: 然后在项目的控制器中实现UIWebView的代理方法: 注意: 阅读全文
摘要:
1、UIToolbar 模糊效果不受控制 UIToolbar *blurView = [[UIToolbar alloc] init]; blurView.barStyle = UIBarStyleBlack; [_headImgView addSubview:blurView]; 2、高斯模糊处理 阅读全文
摘要:
1、因为部分界面分享平台不同,有的需要包含微信朋友圈和qq空间,有的不需要 接入旧版本友盟SDK时,为了满足需求,在不需要微信朋友圈和QQ空间的地方使用代码 [[UMSocialManager defaultManager] removePlatformProviderWithPlatformTyp 阅读全文