show code js

2012年12月14日 星期五

new method of last xcode version

)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
Xcode 4.5.2)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
1.create a project : new_project)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
2.add a button in viewcontroller)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
3.hold right button of mouse and to new_projectViewController.h, will create a class : set name as myButton)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
4.hold right button of mouse and to new_projectViewController.m, it will create a function : use id , and set name as myButton)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
5.in function add some code)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
[sender setTitile:@"click"forState:normal];)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
6.run simulator)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
7.click button will change title to "click")VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
)VuVIyv)q$$FkQ]1-aPv1CMb(piuY8k{],*M?w^S2H]SFwV04
those different old version of xcode ...

沒有留言:

張貼留言