![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ios
Water_tu
这个作者很懒,什么都没留下…
展开
-
Objective-C 入门
OC 是在C语言的基础上增加了一层最小的面向对象语法 // // main.m // LearnOC1 // // Created by apple on 2020/9/11. // Copyright © 2020 tu. All rights reserved. // #import <Foundation/Foundation.h> //#import 引入的头文件可以防止重复包含 /* //Foundation/Foundation.h 包含了其他大量的头文件,把OC的库文原创 2020-09-11 12:21:57 · 124 阅读 · 0 评论 -
iOS 显示第二个页面
1 、选中项目,New File... 选中View, Next,Create ,会出现一个 xib文件 2、 新建View2Controller.m和View2Controller.h文件,添加内容 //View2Controller.h #import <UIKit/UIKit.h> @interface View2Controller : UIViewController @end //View2Controller.m #import "View2Contr..原创 2020-06-16 17:50:09 · 377 阅读 · 0 评论 -
Ios 简单实现控件交互
// // ViewController.m // helloworld // // Created by apple on 2020/6/15. // Copyright © 2020 tu. All rights reserved. // #import "ViewController.h" @interface ViewController () @end @implementation ViewController int index1=0; // 控制器的view加载完毕的时.原创 2020-06-15 17:47:58 · 188 阅读 · 0 评论