首页 > 其他 > 详细

The objective-c grammar

时间:2015-09-09 16:32:00      阅读:182      评论:0      收藏:0      [点我收藏+]

与C#参照对比:

?

C#

Objective-C

文件

  1. .cs是源文件
  2. 带.designer的是View
  1. .h是头文件
  2. .m是源文件
  3. .storyboard是View

函数

  1. 函数定义 Private void Sample(int id);
  2. 函数使用Sample(1);
  1. 函数定义-(void)Sample:(int) id;
  2. 函数使用[super Sample];

Public class Sample{}

@implementation Sample … @end

属性

Public string Label { get; set; }

@property (weak,nonatomic) IBoutlet UILabel *msgLabel;

The objective-c grammar

原文:http://www.cnblogs.com/BlueEye/p/4795007.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!