show code js

2012年12月14日 星期五

new method of last xcode version


Xcode 4.5.2

1.create a project : new_project
2.add a button in viewcontroller
3.hold right button of mouse and to new_projectViewController.h, will create a class : set name as myButton
4.hold right button of mouse and to new_projectViewController.m, it will create a function : use id , and set name as myButton
5.in function add some code
[sender setTitile:@"click"forState:normal];
6.run simulator
7.click button will change title to "click"

those different old version of xcode ...

沒有留言:

張貼留言