07 2020 档案

摘要:https://www.cnblogs.com/chen0307/p/9956331.html 阅读全文
posted @ 2020-07-30 22:31 逆欢 阅读(80) 评论(0) 推荐(0) 编辑
摘要:root m #import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super viewDidLoa 阅读全文
posted @ 2020-07-29 23:15 逆欢 阅读(175) 评论(0) 推荐(0) 编辑
摘要:root m #import "RootViewController.h" @interface RootViewController () { UITextField* tf; } @end @implementation RootViewController - (void)viewDidLoa 阅读全文
posted @ 2020-07-29 22:21 逆欢 阅读(166) 评论(0) 推荐(0) 编辑
摘要:root。m #import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super viewDidLoa 阅读全文
posted @ 2020-07-29 21:42 逆欢 阅读(222) 评论(0) 推荐(0) 编辑
摘要:root.m 6大手势· #import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super view 阅读全文
posted @ 2020-07-28 22:37 逆欢 阅读(136) 评论(0) 推荐(0) 编辑
摘要:root.m #import "RootViewController.h" #import "BallView.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoa 阅读全文
posted @ 2020-07-26 01:37 逆欢 阅读(171) 评论(0) 推荐(0) 编辑
摘要:root.m #import "RootViewController.h" #import "MyView.h" @interface RootViewController () { UITextField *tf; } @end @implementation RootViewController 阅读全文
posted @ 2020-07-26 01:11 逆欢 阅读(145) 评论(0) 推荐(0) 编辑
摘要:RootViewControlle.m #import "RootViewController.h" #import "MyView.h" @interface RootViewController () @end @implementation RootViewController - (void 阅读全文
posted @ 2020-07-21 22:42 逆欢 阅读(131) 评论(0) 推荐(0) 编辑
摘要:RootViewController #import "RootViewController.h" #import "SecondViewController.h" @interface RootViewController () @end @implementation RootViewContr 阅读全文
posted @ 2020-07-20 22:25 逆欢 阅读(105) 评论(0) 推荐(0) 编辑
摘要:#import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super viewDidLoad]; //U 阅读全文
posted @ 2020-07-19 23:52 逆欢 阅读(212) 评论(0) 推荐(0) 编辑
摘要:#import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super viewDidLoad]; UIB 阅读全文
posted @ 2020-07-19 23:10 逆欢 阅读(314) 评论(0) 推荐(0) 编辑
摘要:import requests proxy='36.56.206.127:20945' #本地代理 #proxy='username:password@123.58.10.36:8080' proxies={ 'http':'http://'+proxy, 'https':'https://'+pr 阅读全文
posted @ 2020-07-17 16:30 逆欢 阅读(1151) 评论(0) 推荐(0) 编辑
摘要:知识点 1.基础操作 2.代理协议 #import "RootViewController.h" // 第一个条件签订协议, 好比是我要卖安利的产品,我首先要签订一个协议 @interface RootViewController ()<UITableViewDelegate> @end @impl 阅读全文
posted @ 2020-07-15 00:02 逆欢 阅读(169) 评论(0) 推荐(0) 编辑
摘要:UIButton #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //按钮 / 阅读全文
posted @ 2020-07-14 22:40 逆欢 阅读(141) 评论(0) 推荐(0) 编辑
摘要:UILabel m #import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad { [super viewDid 阅读全文
posted @ 2020-07-13 22:54 逆欢 阅读(214) 评论(0) 推荐(0) 编辑
摘要:app m #import "AppDelegate.h" #import "ViewController.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication 阅读全文
posted @ 2020-07-13 22:15 逆欢 阅读(119) 评论(0) 推荐(0) 编辑
摘要:m @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.wind 阅读全文
posted @ 2020-07-13 00:19 逆欢 阅读(127) 评论(0) 推荐(0) 编辑
摘要:main #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { // 所有基本数据类型的字面前加@,都会变成NSNumber对象 @autoreleasepool { NSNumber* n1=@10; 阅读全文
posted @ 2020-07-12 23:34 逆欢 阅读(111) 评论(0) 推荐(0) 编辑
摘要:OC中的所有集合对象(NSArry,NSSet,NSDictionary)只能存储OC对象,不能存储基本数据类型 (char short int long float double)和结构体类型数值 main #import <Foundation/Foundation.h> int main(in 阅读全文
posted @ 2020-07-09 23:38 逆欢 阅读(170) 评论(0) 推荐(0) 编辑
摘要:main #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { //NSSet 集合对象 //NSSet 使用散列表 hash table 形式 的技术存储对象 便 阅读全文
posted @ 2020-07-09 22:35 逆欢 阅读(160) 评论(0) 推荐(0) 编辑
摘要:mian #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { // NSRange范围结构体 NSString* str=@"Object-C is a cool 阅读全文
posted @ 2020-07-08 23:21 逆欢 阅读(130) 评论(0) 推荐(0) 编辑
摘要:main #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSArray* array=@[@1,@2,@3,@4];//[NSNumber numberWi 阅读全文
posted @ 2020-07-08 22:22 逆欢 阅读(280) 评论(0) 推荐(0) 编辑
摘要:h #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN //字符串对象 最好使用copy, 防止受外部的影响 @interface Person : NSObject <NSCopying> @property(nonatomic,co 阅读全文
posted @ 2020-07-08 21:39 逆欢 阅读(134) 评论(0) 推荐(0) 编辑
摘要:#import <Foundation/Foundation.h> #import "Person.h" int main(int argc, const char * argv[]) { @autoreleasepool { //自己创建的对象 虽然放在自动释放池中,但是不受管理 加上 autor 阅读全文
posted @ 2020-07-06 22:50 逆欢 阅读(265) 评论(0) 推荐(0) 编辑
摘要:mrc模式下 person.h #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /* @propety 1.原子性 :atomic 线程安全 (默认) nonatomic 执行速度更快 2.对象的所有权 assign 基本数据类型 阅读全文
posted @ 2020-07-06 22:12 逆欢 阅读(323) 评论(0) 推荐(0) 编辑
摘要:c语言中内存管理存在问题 静态内存分配: 局部变量 栈 全局变量 数据区 动态内存分配 堆 内存分配函数 malloc calloc realloc 内存释放 free 使用原则 用完了释放 问题1. 内存泄漏 ,用完了动态分配的内存就不释放,就产生内存泄漏 解决 :用完malloc 用free 问 阅读全文
posted @ 2020-07-04 22:05 逆欢 阅读(131) 评论(0) 推荐(0) 编辑
摘要:什么是代理? 1.代理(委托):自己不亲身做,让别人做 2.定义了协议的类可以看作将协议定义的方法代理给了实现这些方法的类 boss h #import <Foundation/Foundation.h> #import "Assisant.h" @interface boss : NSObject 阅读全文
posted @ 2020-07-02 23:16 逆欢 阅读(358) 评论(0) 推荐(0) 编辑
摘要:协议文件 //协议 @protocol IOSBase -(void)knowc; -(void)knowoc; -(void)canDevelopiOS; @end @protocol IOSBaseplus @optional//可选的 -(void)knowcpower; @required/ 阅读全文
posted @ 2020-07-02 22:11 逆欢 阅读(215) 评论(0) 推荐(0) 编辑
摘要:未命名类别 在()中不指定类别的名字 可以定义附加的实例变量 声明的方法需要在主实现区域实现 实例变量和方法都是私有的 如果想要写一个类,而且数据和方法仅供给这个类本身使用,未命名类比较适合 优点: 分解大块代码 为类做扩展 .h #import <Foundation/Foundation.h> 阅读全文
posted @ 2020-07-01 22:28 逆欢 阅读(159) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示