自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 iOS_工厂类

UIButton的处理UIButton+BaseButton.h// 快速BUtton生成+ (UIButton * _Nullable)buttonWithTitle:(NSString * _Nullable)title titleColor:(UIColor * _Nullable)titleColor titleFont:(UIFont * _Nullable)titleFont;+ (UIButton * _Nullable)buttonWithTitle:(NSString * _Nul

2020-07-29 14:36:11 126

原创 iOS_常用宏定义

NLog处理设置Build Setings -> Preprocessor Mecros -> Debug DEBUG=1 BuildBuild Setings -> Preprocessor Mecros -> Release#pragma mark - NSLog在release下不输出#ifdef DEBUG#define NSLog(formater,...) NSLog((@"\n[文件名:%s] " "函数名:%s\n" "代码行数: %d " form

2020-07-29 12:20:17 178

原创 iOS_防止Button重复点击,添加点击时间间隔

UIButton+TJTime 方法实现tj_acceptEventInterval 为button点击时间间隔,赋值后起作用@interface UIButton (TJTime)/* 防止button重复点击,设置间隔 */@property (nonatomic, assign) NSTimeInterval tj_acceptEventInterval;@end引用设置#import <objc/runtime.h>static const char *UIB

2020-07-29 11:47:43 440

原创 iOS_键盘弹出输入框上移

监听键盘出现消失消息 - (void)addKeyboardShowViewChange { //增加监听,当键盘出现或改变时收出消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; //增加监听,当键退出时收出消息 [[NSNotifi.

2020-07-29 11:36:56 496

转载 iOS_获取当前显示的页面

iOS_获取当前显示的页面UINavigationController 中有visibleViewController和topViewControllervisibleViewController 当前显示的控制器topViewController 是某个导航栈的栈顶视图visibleViewController跟导航栈没有关系,只是当前显示的控制器,也就是说任意一个导航的visibleViewController所返回的值应该是一样的topViewController 是某个导航栈的栈顶视图,

2020-07-29 11:13:48 643

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除