|
1.IOS Alert 與 連結網址 |
連網址與法:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://7311.tw"]];
|
2.potocol 與 categories |
訊息快速寫法:
[[[UIAlertView alloc] initWithTitle:@"標題" message:@"你中大樂透" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
|
3.不使用繼承有繼承效果 cmposite合成 |
|
4.preprocessor前置處理 |