스크롤되지 않는 uiview의 uiscrollview

Shadonar

스토리 보드를 사용하여 많은 하위 항목이 UIView포함 된 을 만들고 UIScrollView있습니다. 이러한 하위 항목은에 대한 UIImageView배경 이미지로 사용중인 UIScrollView, UILabels프로그래밍 방식으로 채운 일련의 항목 및 UITableViews호출 된 라이브러리 클래스 집합에서 얻은 데이터로 채운 일련의 항목으로 구성됩니다 . UIScrollView사용자가 여러보기를 표시하지 않고도 모든 정보를 스크롤 할 수 있도록 이 모든 것을 내에서 원합니다 . 여기에서 많은 게시물을 검색하고 많은 제안을 사용했지만보기 스크롤을 성공적으로 수행하지 못하고 사용자가 내가 제시하려는 모든 데이터를 볼 수 있도록 허용하지 못했습니다.

다음은 스토리 보드의 스크린 샷과 내 속성 검사기의 샷입니다. UIScrollView

여기에 이미지 설명 입력

여기에 이미지 설명 입력

I'll also provide the .h and .m files

weatherController.h

#import <UIKit/UIKit.h>
#import "WeatherParser.h"
#import "WeatherLocation.h"
#import "WeatherImg.h"
#import "WeatherWind.h"
#import "ForcastDay.h"
#import "ForecastItem.h"
#import "Condition.h"
#import "Atmo.h"
#import "Astro.h"
@class WeatherParser;
@class WeatherParserDelegate;
@class WeatherLocation;
@class WeatherImg;
@class WeatherWind;
@class ForcastDay;
@class ForecastItem;
@class Condition;
@class Atmo;
@class Astro;

@interface weatherController : UIViewController <UITableViewDataSource,UITableViewDelegate,WeatherParserDelegate>{
    WeatherParser * _rssParser;
    bool loadingEvents;
}

@property (nonatomic, retain) WeatherParser * rssParser;
@property bool loadingEvents;

@property (retain, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet UILabel *cityLabel;
@property (weak, nonatomic) IBOutlet UILabel *state_countryLabel;
@property (weak, nonatomic) IBOutlet UILabel *currHighLabel;
@property (weak, nonatomic) IBOutlet UILabel *currLowLabel;
@property (weak, nonatomic) IBOutlet UILabel *currTempLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIImageView *logoImageView;
@property (weak, nonatomic) IBOutlet UILabel *logoLabel;
@property (weak, nonatomic) IBOutlet UITableView *forecastTableView;
@property (weak, nonatomic) IBOutlet UITableView *atmoTableView;
@property (weak, nonatomic) IBOutlet UITableView *windTableView;
@property (weak, nonatomic) IBOutlet UITableView *astroTableView;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *sidebarButton;

@property (nonatomic, retain) NSMutableArray *forecastDays;
@property bool logoSet;

@end

and here's my weatherController.m file. I'm going to only add the viewDidLoad method which is the only method containing code regarding my UIScrollView.

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _scrollView.delegate = self;    

//    self.scrollView.frame = CGRectMake(0, 0, 320.0f, 480.0f);
    self.scrollView.contentSize =CGSizeMake(320.0F, 480.0F);  //(320, 1210)];
    [_scrollView setScrollEnabled:YES];
}

I would appreciate any help regarding what it is I'm either doing wrong or missing. If I set up my frame and contentSize to the following:

self.scrollView.frame = CGRectMake(0, 0, 320.0f, 480.0f);
self.scrollView.contentSize =CGSizeMake(320.0F, 1210.0F);

I do get the UIScrollView to scroll, but the image for the background is only the size of the frame, and none of the rest of the child content on the UIScrollView is displayed. It seems like it's allowing me to scroll but I'm only able to view the content that is viewable within the frame.

Again, thank you in advance for any help offered.

Holly

주석에서 알 수 있듯이 일반적으로 UIScrollView 내에 UITableView를 배치하는 것은 좋지 않습니다. 허용되는 해결책이 될 때와 장소가 있기 때문에 나는 당신에게 너무 어렵지 않을 것입니다. 이번이 지금인지 아닌지 판단하도록하겠습니다.

여전히 완전히 이해하지 못하는 이유로 UIScrollView는 UIScrollView가 스크롤 할 수있는 크기의 단일 UIView에 전체 콘텐츠를 포함하면 예상 한대로 작동합니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

UIScrollView 내의 UIView가 스크롤되지 않는 이유는 무엇입니까?

분류에서Dev

더 넓은 UIView가있는 UIScrollView가 스크롤되지 않음

분류에서Dev

Q : UIScrollView를 UIView에 추가했는데 scrollView가 스크롤되지 않는 경우

분류에서Dev

인터페이스 빌더의 UIScrollView가 스크롤되지 않음

분류에서Dev

AutoLayout이있는 UIScrollView가 스크롤되지 않습니다.

분류에서Dev

UIView를 포함하는 UIScrollView가 스크롤 될 때 UIView의 크기가 기본값으로 다시 조정되는 이유는 무엇입니까?

분류에서Dev

UIScrollView 컨트롤러가 완전히 스크롤되지 않음

분류에서Dev

iOS : 2 개 이미지의 가로 스크롤이있는 UIScrollView

분류에서Dev

UIScrollView가 스크롤되지 않음 (스토리 보드)

분류에서Dev

UIScrollView : 아무것도 스크롤되지 않습니다.

분류에서Dev

UIScrollView의 자동 레이아웃 제약 조건을 따르지 않는 UIView

분류에서Dev

UIScrollview 위에있는 UIView, 탭이 아닌 스크롤 만 통과

분류에서Dev

UIScrollView의 UIView가 너비를 조정하지 않습니다.

분류에서Dev

UIScrollview에 호출 및 추가 될 때 사용자 정의 UIView 클래스의 속성이 설정되지 않음

분류에서Dev

대리자를 제공했지만 uiscrollview가 스크롤되지 않음

분류에서Dev

자동 레이아웃이있는 UIView는 UIScrollView 내부의 높이를 증가시키지 않습니다.

분류에서Dev

iOS 7에서 UIScrollView가 맨 아래로 스크롤되지 않음

분류에서Dev

UIScrollView에 추가 할 때 UIButton이 스크롤되지 않습니다.

분류에서Dev

사진 스크롤 앱-두 번째 UIScrollView에 UIImageView가 표시되지 않음

분류에서Dev

내가 무엇을 시도해도 UIScrollView가 스크롤되지 않습니다.

분류에서Dev

UIScrollView가 스크롤되는 동안 UI 요소가 업데이트되지 않습니다.

분류에서Dev

UIScrollView의 UIView가 전체 너비로 늘어나지 않습니다.

분류에서Dev

UIScrollView는 WKWebView 콘텐츠를 렌더링 한 후 스크롤되지 않습니다.

분류에서Dev

UIScrollView가 가로 모드에서 스크롤되지 않음-테스트 코드 및 스크린 샷 첨부

분류에서Dev

사용자 정의 UITableViewCell 내부의 수평 UIScrollView-IB Storyboard 사용-스크롤하지 않음

분류에서Dev

뷰포트의 스크롤되지 않는 높이 얻기

분류에서Dev

uiscrollview 내의 uilabel 텍스트가 IOS에 표시되지 않음

분류에서Dev

UIScrollView setContentOffset이 콘텐츠 크기 밖으로 스크롤되고 뒤로 물러나지 않습니다.

분류에서Dev

프로그래밍 방식 UIScrollView는 스크롤을 원하지 않습니다.

Related 관련 기사

  1. 1

    UIScrollView 내의 UIView가 스크롤되지 않는 이유는 무엇입니까?

  2. 2

    더 넓은 UIView가있는 UIScrollView가 스크롤되지 않음

  3. 3

    Q : UIScrollView를 UIView에 추가했는데 scrollView가 스크롤되지 않는 경우

  4. 4

    인터페이스 빌더의 UIScrollView가 스크롤되지 않음

  5. 5

    AutoLayout이있는 UIScrollView가 스크롤되지 않습니다.

  6. 6

    UIView를 포함하는 UIScrollView가 스크롤 될 때 UIView의 크기가 기본값으로 다시 조정되는 이유는 무엇입니까?

  7. 7

    UIScrollView 컨트롤러가 완전히 스크롤되지 않음

  8. 8

    iOS : 2 개 이미지의 가로 스크롤이있는 UIScrollView

  9. 9

    UIScrollView가 스크롤되지 않음 (스토리 보드)

  10. 10

    UIScrollView : 아무것도 스크롤되지 않습니다.

  11. 11

    UIScrollView의 자동 레이아웃 제약 조건을 따르지 않는 UIView

  12. 12

    UIScrollview 위에있는 UIView, 탭이 아닌 스크롤 만 통과

  13. 13

    UIScrollView의 UIView가 너비를 조정하지 않습니다.

  14. 14

    UIScrollview에 호출 및 추가 될 때 사용자 정의 UIView 클래스의 속성이 설정되지 않음

  15. 15

    대리자를 제공했지만 uiscrollview가 스크롤되지 않음

  16. 16

    자동 레이아웃이있는 UIView는 UIScrollView 내부의 높이를 증가시키지 않습니다.

  17. 17

    iOS 7에서 UIScrollView가 맨 아래로 스크롤되지 않음

  18. 18

    UIScrollView에 추가 할 때 UIButton이 스크롤되지 않습니다.

  19. 19

    사진 스크롤 앱-두 번째 UIScrollView에 UIImageView가 표시되지 않음

  20. 20

    내가 무엇을 시도해도 UIScrollView가 스크롤되지 않습니다.

  21. 21

    UIScrollView가 스크롤되는 동안 UI 요소가 업데이트되지 않습니다.

  22. 22

    UIScrollView의 UIView가 전체 너비로 늘어나지 않습니다.

  23. 23

    UIScrollView는 WKWebView 콘텐츠를 렌더링 한 후 스크롤되지 않습니다.

  24. 24

    UIScrollView가 가로 모드에서 스크롤되지 않음-테스트 코드 및 스크린 샷 첨부

  25. 25

    사용자 정의 UITableViewCell 내부의 수평 UIScrollView-IB Storyboard 사용-스크롤하지 않음

  26. 26

    뷰포트의 스크롤되지 않는 높이 얻기

  27. 27

    uiscrollview 내의 uilabel 텍스트가 IOS에 표시되지 않음

  28. 28

    UIScrollView setContentOffset이 콘텐츠 크기 밖으로 스크롤되고 뒤로 물러나지 않습니다.

  29. 29

    프로그래밍 방식 UIScrollView는 스크롤을 원하지 않습니다.

뜨겁다태그

보관