码迷,mamicode.com
首页 > 其他好文 > 详细

The objective-c grammar

时间:2015-09-09 17:08:43      阅读:124      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!