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 promote to KOL? Here are 3 ways!

Why do KOLs ignore me? How to convince KOL to pro...

Wang Tong: "The Tipping Point for Increasing Followers through Short Videos"

Application Introduction The first course of Wang...

Fission! Here is a complete guide to WeChat traffic "wool wool"

1. Fission! Fission! In the past six months, fiss...

Common properties and methods of UIScrollView class

[java] view plaincopy CGRect bounds = [ [ UIScree...

【Practical】Basic knowledge you should know about game IP

The gaming industry is perhaps the most special o...

Let me tell you about an exciting animal... (screaming the whole time)

Addendum 1: Many people may have heard of this me...

From China to the United States: Talking about mobile phone screen protectors

Since humans began to use mobile phones, there has...

Marketing promotion: 5 steps to implement gamification marketing!

In the era of information explosion, if you want ...