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

A fish has two "hands", and it can't swim, so it has to "walk"?

If someone asks you: Are there any fish that can&...

Faraday Future is sued by Fuzhuo for $10 million in overdue payments

Recently, it was reported that Faraday Future, wh...

Is the new euthanasia capsule truly painless?

Death is a long and painful process for most peop...

French auto parts supplier GM&S in trouble, PSA refuses further financial aid

According to foreign media reports, the French go...

The rabbit is coming!

Bunny Using cute appearance Confusing you Their f...

6 golden rules of new media marketing!

New Media New media is a relative concept. It is ...

BeiDou-1, -2 and -3, what are they talking about?

If Beidou is still just a noun in your eyes After...