アプリのアップデートをもっと見たいときのApp Storeのオプションと同じように、ボタンをクリックして詳細を表示することで、UITableViewまたはの高さを拡張しようとしています。UIViewそのためのチュートリアルはありますか?
1 に答える
0
わかりました私は自分の質問に答えるつもりです。おそらくこれにはもっと簡単な方法がありますが、誰かが同じ質問をしている場合は、これを使用できます: 1.UIButtonビューに a を追加NSInteger iしviewDidLoadますi=0。3. ユーザーが の非表示ボタンをクリックすると、次のようになりUIViewます。
-(IBAction) clickMyView (id) sender {
if (i==0){
i=1;
[self changeView];
}
else{
i=0;
[self changeView];
}
4.セットchageView:
-(void) changeView{
if (i==0){
[UIView beginAnimations : nil context:nil];
[UIView setAnimationDuration:0.3];
[UIView setAnimationBeginsFromCurrentState:TRUE];
// Change the view back to it's normal size here
[UIView commitAnimations];
}
else{
[UIView beginAnimations : nil context:nil];
[UIView setAnimationDuration:0.3];
[UIView setAnimationBeginsFromCurrentState:TRUE];
// Change the view to the new size here
[UIView commitAnimations];
}
于 2012-11-03T17:50:32.617 に答える