2012-10-29 3 views
0

앱의 추가 업데이트를보고 싶을 때 버튼을 클릭하여 App Store의 옵션과 동일한 세부 정보를 표시하여 UITableView 또는 UIView 님의 키를 확장하려고합니다. 그것을위한 튜토리얼인가요?UIView 또는 UITableView를 확장하십시오

답변

0

괜찮아요. 제 질문에 대답 할게요. 아마 이것에 대한 쉬운 방법이 있지만 누군가가 동일한 질문을 가지고 있다면 이것을 사용할 수 있습니다 : 보기에 UIButton을 추가하십시오. 2. .h 파일에서 NSInteger iviewDidLoadi=0으로 지정하십시오. 3. 사용자 UIView에 보이지 않는 버튼을 클릭

-(IBAction) clickMyView (id) sender { 
if (i==0){ 
i=1; 
[self changeView]; 
} 
else{ 
i=0; 
[self changeView]; 
} 

4.Set 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]; 

} 
관련 문제