仿Instagram风格滚动视图源码下载

移动开发
一款iOS上的源码,主要是用Object-C来开发,类似于Instagram和20lines的滚动浏览效果。

其他

iOS

iOS

Object-c

Xcode

3.64MB

源码简介:

类似于Instagram和20lines的滚动浏览效果。

源码运行截图:

源码片段

  1. -(void)loadGraphics {  
  2.     imgCropped=nil;     self.view.backgroundColor=[UIColor whiteColor];  
  3.           //set the image of the template  
  4.     if(kHeight>480){         imageViewTemplate=[[PFImageView alloc] initWithFrame:CGRectMake(kWidth/2-85, 20, 170, 255)];  
  5.     }else{         imageViewTemplate=[[PFImageView alloc] initWithFrame:CGRectMake(kWidth/2-60, 20, 120, 180)];  
  6.     }     [imageViewTemplate setImage:[UIImage imageNamed:@"copertina1"]];  
  7.     [self.view addSubview:imageViewTemplate];    
  8.           //set the templates view at the bottom  
  9.     templatesView=[[PFTemplatesViewController alloc] init];     templatesView.view.frame=CGRectMake(0, kHeight-264, kWidth, 264);  
  10.     templatesView.imgCover=_imgChosen;     [templatesView loadGraphics];  
  11.     templatesView.scrollTemplatesView.delegate=self;     [self.view addSubview:templatesView.view];  
  12.           templateNumber=0;  
  13.     templateColor=rgb2Color(255, 255, 255); }  
  14.   -(void)templateCreated:(UIImage *)imgTemplate andNumber:(NSInteger)numberTemplate andColor:(UIColor *)colorTemplate  
  15. {     templateNumber=numberTemplate;  
  16.     templateColor=colorTemplate;        
  17.     [imageViewTemplate setImage:imgTemplate];     CATransition *transition = [CATransition animation];  
  18.     transition.duration = 0.3f;     transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];  
  19.     transition.type = kCATransitionFade;     [imageViewTemplate.layer addAnimation:transition forKey:nil];  
  20. }  

源码下载地址:http://down.51cto.com/data/1963010

责任编辑:闫佳明 来源: devstore
相关推荐

2015-01-20 17:15:55

iOS源码滚动视图

2015-01-19 12:19:04

iOS源码ActionSheet仿QQ音乐

2015-01-22 15:44:55

Android源码音乐播放器

2013-03-29 11:06:24

iOS开发滚动视图UIScrol

2015-10-20 16:01:47

华为商城源码android

2017-05-03 16:30:38

AndroidScrollView滚动视图

2015-10-23 13:36:22

2020-09-29 11:01:08

漏洞

2015-09-01 17:09:41

uc浏览器源码

2015-03-30 14:24:06

网易布局

2015-02-28 15:15:47

插件Android桌面插件

2015-02-06 18:29:09

仿滴滴打车android

2015-10-12 11:19:35

墨迹天气引导界面android

2011-11-02 10:57:24

Instagram移动应用照片分享

2013-08-06 15:13:57

Android 4.3源码

2014-12-30 11:04:39

懒人笔记

2015-10-12 11:25:20

android大众点评下拉动画

2015-07-13 14:05:32

ios开发多表视图

2012-04-05 09:52:04

AndroidInstagram

2015-07-06 10:48:56

iOS开发技巧
点赞
收藏

51CTO技术栈公众号