- 1、问题 command + R运行提示如下错误 Interface type cannot be statically allocated 2、解决办法 是代码写错了 User user = [[User alloc] init]; 改成如下 User *user = [[User ... 1、问题 command + R运行提示如下错误 Interface type cannot be statically allocated 2、解决办法 是代码写错了 User user = [[User alloc] init]; 改成如下 User *user = [[User ...
- 1、哥德巴赫猜想 任意大于2的偶数,都可以表示成为2个素数之和 2、代码实现 #include <iostream>#include <math.h> using ... 1、哥德巴赫猜想 任意大于2的偶数,都可以表示成为2个素数之和 2、代码实现 #include <iostream>#include <math.h> using ...
- 1、KVC介绍 1)、KVC是由NSKeyValueCoding协议提供支持最基本的属性和两个方法如下 setValue:属性值 forkey:属性名:为指定属性设置值 valueForKey:属性名 (得到或者指定属性的值) 2)、当设置value为nil的时候,我们需要在类的实现里面重写setNilValu... 1、KVC介绍 1)、KVC是由NSKeyValueCoding协议提供支持最基本的属性和两个方法如下 setValue:属性值 forkey:属性名:为指定属性设置值 valueForKey:属性名 (得到或者指定属性的值) 2)、当设置value为nil的时候,我们需要在类的实现里面重写setNilValu...
- 1、NSString和NSMutableString NSString是不变字符串类,有点像java里面的String,NSMutableString是可变字符串类,有点类似java里面的StringBuffer 2、测试demo int main(int argc, char * argv[]) { @autoreleasepool { unicha... 1、NSString和NSMutableString NSString是不变字符串类,有点像java里面的String,NSMutableString是可变字符串类,有点类似java里面的StringBuffer 2、测试demo int main(int argc, char * argv[]) { @autoreleasepool { unicha...
- 1、协议 可以理解为java里面的接口 2、测试Demo NSObject+chenyu.h #ifndef NSObject_chenyu_h#define NSObject_chenyu_h#import <Foundation/Foundation.h> @interface NSObj... 1、协议 可以理解为java里面的接口 2、测试Demo NSObject+chenyu.h #ifndef NSObject_chenyu_h#define NSObject_chenyu_h#import <Foundation/Foundation.h> @interface NSObj...
- 一、主要属性介绍 1、自动合成setter、getter方法 1)、接口部分@property指定属性 2)、实现部分@synthesize 如果 @syntheszie widows = _windows 这里成员变量名是_windows,而不是windows 2、atomic(nonatomic) 这里... 一、主要属性介绍 1、自动合成setter、getter方法 1)、接口部分@property指定属性 2)、实现部分@synthesize 如果 @syntheszie widows = _windows 这里成员变量名是_windows,而不是windows 2、atomic(nonatomic) 这里...
- 1、创建ios项目 1、create Xcode ->simpleViewApplication -> input Program name 2、在控制器里面加入代码 我们在viewControl.m里面加上UILabel控件,这个控件和Android 里面的TextView类似,具体代码如下 //// V... 1、创建ios项目 1、create Xcode ->simpleViewApplication -> input Program name 2、在控制器里面加入代码 我们在viewControl.m里面加上UILabel控件,这个控件和Android 里面的TextView类似,具体代码如下 //// V...
- 1、逗号表达式,返回整个逗号表达式的返回值是最后一个表达式的返回值,长见识了,第一次听说,比如 int x = (a = 3, a = 4, a = 5, a = 6); NSLog(@"x is %d", x);x is 6 2、iOS 有如下三种随机数方法: 1)、srand((unsigned)time... 1、逗号表达式,返回整个逗号表达式的返回值是最后一个表达式的返回值,长见识了,第一次听说,比如 int x = (a = 3, a = 4, a = 5, a = 6); NSLog(@"x is %d", x);x is 6 2、iOS 有如下三种随机数方法: 1)、srand((unsigned)time...
- 本文目录 前言动画的原理AnimationAnimatableAnimationControllerTweenTween实现循环放大与缩小Curve 前言 不管是Android还是IOS,我们都能看到用户在使用动画,交互动画可以作为用户的操作向导,不让操作乏味无趣,可以说没有动画的APP,是没有灵魂的App。本篇将讲解在Flutter中如何使用。 ... 本文目录 前言动画的原理AnimationAnimatableAnimationControllerTweenTween实现循环放大与缩小Curve 前言 不管是Android还是IOS,我们都能看到用户在使用动画,交互动画可以作为用户的操作向导,不让操作乏味无趣,可以说没有动画的APP,是没有灵魂的App。本篇将讲解在Flutter中如何使用。 ...
- https://www.cnblogs.com/cmai/p/8372607.html android camera之nv21旋转 这周做的一个android的camera开发,需要获取到视频帧数据,并且需要是nv21格式的byte数组,并且视频帧的图像需要是正方向的。和android相机打过交道的都清楚,android的camera获取到... https://www.cnblogs.com/cmai/p/8372607.html android camera之nv21旋转 这周做的一个android的camera开发,需要获取到视频帧数据,并且需要是nv21格式的byte数组,并且视频帧的图像需要是正方向的。和android相机打过交道的都清楚,android的camera获取到...
- 利用block完成回调,小demo一个。闲话少说,直接上代码了!O(∩_∩)O~ TestObject.h [objc] view plain copy #import <Foundation/Foundation.h> typedef void (... 利用block完成回调,小demo一个。闲话少说,直接上代码了!O(∩_∩)O~ TestObject.h [objc] view plain copy #import <Foundation/Foundation.h> typedef void (...
- iOS 代理反向传值 在上篇博客 iOS代理协议 中,侧重解析了委托代理协议的概念等,本文将侧重于它们在开发中的应用。 假如我们有一个需求如下:界面A上面有一个button、一个label。从界面A跳转到界面B,在界面B的输入框中输入字符串,在界面A的label上显示。这是一个典型的反向传值的例子。这个例子的核心是:“在界面B的输入框中输入字符串,在界面... iOS 代理反向传值 在上篇博客 iOS代理协议 中,侧重解析了委托代理协议的概念等,本文将侧重于它们在开发中的应用。 假如我们有一个需求如下:界面A上面有一个button、一个label。从界面A跳转到界面B,在界面B的输入框中输入字符串,在界面A的label上显示。这是一个典型的反向传值的例子。这个例子的核心是:“在界面B的输入框中输入字符串,在界面...
- https://github.com/ase-lab/oculus-StickyNote-iOS 好像是相机 https://github.com/nevyn/OcuCam 这个有ios https://github.com/lanephillips/iOS-Rift-Experiment https://github.com/ase-lab/oculus-StickyNote-iOS 好像是相机 https://github.com/nevyn/OcuCam 这个有ios https://github.com/lanephillips/iOS-Rift-Experiment
- -(void) sendStartCmd:(int)newValue{ sockfd =socket(AF_INET,SOCK_DGRAM,0); if(sockfd <0) { NSLog... -(void) sendStartCmd:(int)newValue{ sockfd =socket(AF_INET,SOCK_DGRAM,0); if(sockfd <0) { NSLog...
- 创建一个测试的UIButton #import "ViewController.h" @interface ViewController () @property(nonatomic, strong)UIButton *button; @end @implementation ViewController - (void)viewDidLoad { [su... 创建一个测试的UIButton #import "ViewController.h" @interface ViewController () @property(nonatomic, strong)UIButton *button; @end @implementation ViewController - (void)viewDidLoad { [su...
上滑加载中
推荐直播
-
华为云码道 × 仓颉编程:工程化AI编码探索2026/05/27 周三 19:00-21:00
刘俊杰-华为云仓颉语言专家/李炎-华为云码道技术专家/王智鹏-OpenCangjie开源社区发起人
本场直播围绕华为云仓颉语言与华为云码道的深度结合,展示华为云智能编程从零基础到高效落地的完整生态能力。以华为云码道为引擎,仓颉语言为载体,带给大家日常提效、趣味创新到极速量产的开发体验。
回顾中 -
一个AI团队帮你写代码:华为云码道Agent Space实战2026/06/25 周四 19:00-21:00
张翰文-华为云码道工程师/郭英旭-青软创新科技集团股份有限公司 软件架构师
本场直播聚焦华为云码道Agent Space两大模式:研发办公、代码开发,亲身体验从需求到代码的AI自动化能力。实操演示基于华为 CodeArts CLI,依托 OpenSpec 规格体系从零搭建业务项目。
即将直播
热门标签