上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
  2018年10月24日
摘要: // 每个item宽高 CGFloat W = 90; CGFloat H = 110; // 每行列数 NSInteger rank = 4; // 每列间距 CGFloat rankMargin = (self.view.frame.size.width-rank *W)/(rank-1); / 阅读全文
posted @ 2018-10-24 14:19 强者VS弱者 阅读(128) 评论(0) 推荐(0) 编辑
  2018年9月20日
摘要: 极光推送消息,app图标右上角红色的数字无法清除。收到通知直接点击app图标或者设置方法使得接收通知后直接跳转页面进入app,角标无法清除 解决方案: //程序在运行时收到通知,点击通知栏进入app - (void)jpushNotificationCenter:(UNUserNotificatio 阅读全文
posted @ 2018-09-20 17:51 强者VS弱者 阅读(611) 评论(0) 推荐(0) 编辑
  2018年8月31日
摘要: reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x17005ef30' 解决方案 Target->Buid Settings->Linking 下 Other Linker Flags 项添加-all_ 阅读全文
posted @ 2018-08-31 16:47 强者VS弱者 阅读(186) 评论(0) 推荐(0) 编辑
  2018年8月7日
摘要: 效果:viewController里面放置一个按钮和Lab,点击按钮进入oneViewController(delegate回调)或者BlockViewController(block回调),两者控制器里面分别有一个输入框,输入文字后 点击完成,把文本框输入的内容回调到 VIewController 阅读全文
posted @ 2018-08-07 10:32 强者VS弱者 阅读(117) 评论(0) 推荐(0) 编辑
  2018年8月6日
摘要: 1. Xcode创建一个新项目,打开一个.h或者.m文件 2.我举例以设置属性为例 #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic,strong)<#type#> * 阅读全文
posted @ 2018-08-06 15:04 强者VS弱者 阅读(153) 评论(0) 推荐(0) 编辑
  2018年8月1日
摘要: 1.最常用的初始化/** 初始化方法 @param type 类型 @return 对象 */ - (instancetype)initWithType:(EnrollOrderViewControllerType)type { self = [super init]; if(self) { sel 阅读全文
posted @ 2018-08-01 17:21 强者VS弱者 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1. 定义枚举 #import <UIKit/UIKit.h> typedef enum { //以下是枚举成员 TestA = 0, TestB = 1, TestC = 2, TestD = 3 }TestType;//枚举名称 //枚举第二种写法 typedef NS_ENUM(NSInteg 阅读全文
posted @ 2018-08-01 16:50 强者VS弱者 阅读(250) 评论(0) 推荐(0) 编辑
  2018年7月31日
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIStoryboard *storyboard = [UIStoryboar 阅读全文
posted @ 2018-07-31 14:40 强者VS弱者 阅读(279) 评论(0) 推荐(0) 编辑
  2018年7月27日
摘要: 第一步: 拖拽UIScrollView 到控制器上 ,给scrollView 添加约束 ,这时是正常的 第二步:scrollview上添加UIview ,(注意:这个 ScrollView就是根据这个UIview 来确定ContentSize的大小的).这时,会报红色警告,不用管,也不要处理(下面这 阅读全文
posted @ 2018-07-27 16:19 强者VS弱者 阅读(291) 评论(0) 推荐(0) 编辑
摘要: //依次遍历self.view中的所有子视图 // for(id tmpView in [view subviews]) // { // //找到要删除的子视图的对象 // if([tmpView isKindOfClass:[UIView class]]) // { // UIView *line 阅读全文
posted @ 2018-07-27 13:54 强者VS弱者 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页