IOS软件开发浅谈.pptVIP

  • 2
  • 0
  • 约3.49千字
  • 约 51页
  • 2023-09-07 发布于江苏
  • 举报
IOS软件开发浅谈;iPhone OS系统概述;iPhone SDK简介;;#import stdio.h int main( int argc, const char *argv[] ) { printf( hello world\n ); return 0; } ;MVC模型视图控制器;;;;;Interface Builder and Nibs;iphone helloworld 流程 ;;;;3.编辑HellophoneViewController.h头文件,加入插座变量和一个方法,使之能与Interface Build中的控件相关联 #import?UIKit/UIKit.h?? @interface?HelloIphoneViewController?:?UIViewController?{?? ????UILabel?*label;//插座变量?? ????UIButton?*btn;//插座变量?? }???? -(IBAction)buttonPressed:(id)sender;?? @end?? ;4,建立代码与控件之间的关联 a)按住control键,右键点击button, ?将出来黑色的那一块列表,然后从后面的圆圈里拉一根线到File‘s Owner上面。 ??b)相同的方法拉一根线到Label上面 ;;5,修改Hello

文档评论(0)

1亿VIP精品文档

相关文档