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

How to analyze retention data and reduce user churn?

As we enter the second half of the Internet era, ...

How to revive an old Douyin account? Can the old Douyin account be restored?

Every day, many Douyin video users register new a...

The Road to Godhood - The Core Secret Method to Conquer Ordinary People

The Road to the Gods: A brief introduction to the...

Tencent Youlianghui's strategy to grab sales during Double 11

This article shares with you the Double Eleven ma...