IOS source code download: Scroll view of text + Images
Function category: Others
Supported platforms: iOS
Running Environment: iOS
Development language: Object-c
Development Tool: Xcode
Source code size: 1.22 MB
Source code:Http://down.51cto.com/data/1976925
Source code Introduction
This is a rolling view that combines problems and images. It can scroll left and right and display text descriptions.
Source code running
Source code snippets
- - (void)viewDidAppear:(BOOL)animated
- {
- [super viewDidAppear:animated];
- NSString *path = [[NSBundle mainBundle] pathForResource:
- @"Places" ofType:@"plist"];
-
- NSMutableArray *placeArray = [[NSMutableArray alloc] initWithContentsOfFile:path];
-
- NSMutableArray *array = [[NSMutableArray alloc] init];
- for (int i =0 ; i < [placeArray count] ; i++){
-
- NSDictionary *dict = [placeArray objectAtIndex:i];
- PJRItems *item = [[PJRItems alloc] init];
- item.itemTitle = [dict objectForKey:@"placeName"];
- item.itemDesc = [dict objectForKey:@"placeDesc"];
- item.itemImage = [dict objectForKey:@"placeImage"];
- [array addObject:item];
- }
-
- PJRPageScrollingView *pagScrollView = [[PJRPageScrollingView alloc] initWithFrame:self.view.bounds withNumberOfItems:array];
- [self.view addSubview:pagScrollView];
-
- }
Source code:Http://down.51cto.com/data/1976925