Skip to main content
deleted 324 characters in body
Source Link
The iOSDev
  • 5.3k
  • 7
  • 43
  • 78

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description hereenter image description here

Now add the IBOutlate for the scrollView like this .h file

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;

and in .m file

@synthesize scrollView;

and in xib Control-Drag from file's Owner to the scrollView to assign the IBOutlate to it

this will looks like this

enter image description here

Now

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

Now add the IBOutlate for the scrollView like this .h file

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;

and in .m file

@synthesize scrollView;

and in xib Control-Drag from file's Owner to the scrollView to assign the IBOutlate to it

this will looks like this

enter image description here

EDIT

enter image description here

Now add the IBOutlate for the scrollView like this .h file

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;

and in .m file

@synthesize scrollView;

and in xib Control-Drag from file's Owner to the scrollView to assign the IBOutlate to it

this will looks like this

enter image description here

Now

added 97 characters in body
Source Link
The iOSDev
  • 5.3k
  • 7
  • 43
  • 78

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

Now add the IBOutlate for the scrollView like this .h file

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;

and in .m file

@synthesize scrollView;

and in xib Control-Drag from file's Owner to the scrollView to assign the IBOutlate to it

this will looks like this

enter image description here

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

Now add the IBOutlate for the scrollView like this .h file

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;

and in .m file

@synthesize scrollView;

and in xib Control-Drag from file's Owner to the scrollView to assign the IBOutlate to it

this will looks like this

enter image description here

added 97 characters in body
Source Link
The iOSDev
  • 5.3k
  • 7
  • 43
  • 78

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

Use this type of hierarchy as below

UIViewController | ->UIScrollView (uncheck opaque in xib) and set background color to clear color

and set the background of the UIViewController

Happy Coding :)

EDIT

Change the line

self.view=scrollView;

with the line

[self.view addSubView:scrollView];

EDIT

enter image description here

formatting
Source Link
The iOSDev
  • 5.3k
  • 7
  • 43
  • 78
Loading
Source Link
The iOSDev
  • 5.3k
  • 7
  • 43
  • 78
Loading