iOS source code download: scroll view of text + pictures

iOS source code download: scroll view of text + pictures

Functional classification: Other

Supported platforms: iOS

Operating environment: iOS

Development language: Object-C

Development tools: Xcode

Source code size: 1.22MB

Source code download address: http://down..com/data/1976925

Source code introduction

This is a scroll view that combines questions and pictures. It can scroll the content left and right and display text descriptions.

Source code running screenshot

Rendering

Source code snippet

  1. - ( void )viewDidAppear:( BOOL )animated
  2. {
  3. [super viewDidAppear:animated];
  4. NSString *path = [[NSBundle mainBundle] pathForResource:
  5. @ "Places" ofType:@ "plist" ];
  6.       
  7. NSMutableArray *placeArray = [[NSMutableArray alloc] initWithContentsOfFile:path];
  8.       
  9. NSMutableArray *array = [[NSMutableArray alloc] init];
  10. for ( int i =0 ; i < [placeArray count] ; i++){
  11.           
  12. NSDictionary *dict = [placeArray objectAtIndex:i];
  13. PJRItems *item = [[PJRItems alloc] init];
  14. item.itemTitle = [dict objectForKey:@ "placeName" ];
  15. item.itemDesc = [dict objectForKey:@ "placeDesc" ];
  16. item.itemImage = [dict objectForKey:@ "placeImage" ];
  17. [array addObject:item];
  18. }
  19.       
  20. PJRPageScrollingView *pagScrollView = [[PJRPageScrollingView alloc] initWithFrame:self.view.bounds withNumberOfItems:array];
  21. [self.view addSubview:pagScrollView];
  22.   
  23. }

Source code download address: http://down..com/data/1976925

<<:  Android source code download: My Gesture Lock

>>:  The HTML5 era has arrived and is gradually being truly implemented

Recommend

IDC room server bandwidth rental costs

The cost of renting server bandwidth in the IDC c...

How to write copywriting that leverages momentum quickly like Durex?

Xi Mengyao’s fall during the recent Victoria’s Se...

Soul product operation analysis report

In today's society where the Internet is wide...

4 key steps to good event planning

When it comes to event planning , perhaps in many...

Mother’s Day Marketing Promotion Case Analysis!

A Boston company called Rehtom once posted a very...

The secret behind the rapid growth of Airbnb and YouTube users...

Why is YouTube the fastest growing company in Sil...

Advertising: Can your ads be seen by users?

What are we talking about when we talk about ad v...