アプリからはボタンを組み込んで使う。
ボタンを押すとライブラリで iCloud とのやりとりが動き出す。
コードはこんな感じ。
[self.view addSubview:
[[MTICloudSaveImageButton buttonAtPosition: CGPointMake(150, 380) withBlock:^(NSError *error) {
//code
if (error==nil && saveImageView.image!=nil) {
//save to iCloud
[[[MTICloudImagesController alloc] init] saveImage: saveImageView.image withDelegate:(id)self];
}
}] animate]
];
ボタンが押されたら MTICloudImagesController に saveImage: を投げてやる。






