上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 27 下一页
  2020年1月5日
摘要: NSArray* array = [NSArray new]; array= [array arrayByAddingObject:obj]; 这个方法 "array="是关键点。 arrayByAddingObject:obj 是在数组的尾部加入 obj 并返回 新的数组。 对,是新的。 那是ar 阅读全文
posted @ 2020-01-05 22:56 wp7ers 阅读(229) 评论(0) 推荐(0)
摘要: 区别1: 在ARC(Auto Reference Count)环境下: instancetype用来在编译期确定实例的类型,而使用id的话,编译器不检查类型, 运行时检查类型. 在MRC(Manual Reference Count)环境下: instancetype和id一样,不做具体类型检查 区 阅读全文
posted @ 2020-01-05 16:58 wp7ers 阅读(131) 评论(0) 推荐(0)
摘要: 使用[[UIScreen mainScreen] bounds]初始化时,得到的不是全屏的高度 【原因】appicon资源和launch images 资源不全引起的。 以上方法添加图片和icon. 【设置】 阅读全文
posted @ 2020-01-05 16:33 wp7ers 阅读(315) 评论(0) 推荐(0)
  2020年1月3日
摘要: 使用了SceneDelegate 13以下黑屏。 1.去SceneDelegate 代码,写回原来的方式。 2.info.plist删掉相关配置。 3.appdelegate里去掉SceneDelegate相关方法。 4.需要将UIWindow window 添加回来。 #import <UIKit 阅读全文
posted @ 2020-01-03 17:31 wp7ers 阅读(118) 评论(0) 推荐(0)
摘要: UIApplication 应用对象。类似 android Application 类。 #单例,一个应用对应一个UIApplication对象。-同android. #单例获取方式。通过[UIApplication sharedApplication]可以获得-android 在menifest中 阅读全文
posted @ 2020-01-03 10:41 wp7ers 阅读(159) 评论(0) 推荐(0)
  2019年11月6日
摘要: 使用 TextWacther public TextWatcher textWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int 阅读全文
posted @ 2019-11-06 18:50 wp7ers 阅读(229) 评论(0) 推荐(0)
  2019年10月29日
摘要: Android7.0调用相机时出现新的错误: android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri() And 阅读全文
posted @ 2019-10-29 15:02 wp7ers 阅读(1062) 评论(0) 推荐(0)
  2019年9月10日
摘要: binding = FragmentNewsMainLayout750Binding.inflate(inflater);homePageViewModel = new HomePageViewModel(getActivity().getSupportFragmentManager(), getA 阅读全文
posted @ 2019-09-10 20:55 wp7ers 阅读(1546) 评论(0) 推荐(0)
  2019年8月27日
摘要: 1.什么是进程。 android 进程可以简单理解为各个app。 但一个app可以有多个进程,(1)使用process属性来开启一个进程。常见推送sdk中使用(2)lunix命令开启进程:fork(); 详细了解进程,需要深入理解Lunix操作系统的原理,水平有限不多说。推荐https://www. 阅读全文
posted @ 2019-08-27 11:30 wp7ers 阅读(596) 评论(0) 推荐(0)
  2019年8月23日
摘要: android 广播复习 1.注册广播接收两种方法,代码动态注册和Menifest静态注册。静态方法在获取了相关权限的情况下,不需要重动app。系统会在接收到广播时执onreceive方法。 2.广播分类,有序广播,无序广播,本地广播。 1.有序:按优先级先后接收,可取消,排后面的可能接收不到。 I 阅读全文
posted @ 2019-08-23 16:18 wp7ers 阅读(188) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 27 下一页