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

Can JD.com’s smart home layout last long-term?

In the third week of March, JD.com, which occupie...

The popular Nanjing tea drinking exchange group, looking forward to your joining

Nanjing tea drinking exchange group, Nanjing high...

Trivia | What can you use to ward off vampires? Garlic?

What to use to ward off vampires, garlic? Written...

The practical process of placing Guangdiantong information flow ads!

Which industries are Guangdiantong information fl...

Future Tech World Warning! What will the world be like in the next 10 years?

Image source: Tuchong Creative What will the worl...

Douyin operation: Enterprises, you must not do Douyin!

Companies must not do TikTok! In 2019, ByteDance’...

AI decides your university? Calculate your 7 personal qualities in minutes

Currently, many universities adhere to the concep...