自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

仿Instagram風(fēng)格滾動視圖源碼下載

移動開發(fā)
一款iOS上的源碼,主要是用Object-C來開發(fā),類似于Instagram和20lines的滾動瀏覽效果。

其他

iOS

iOS

Object-c

Xcode

源碼簡介:

類似于Instagram和20lines的滾動瀏覽效果。

源碼運(yùn)行截圖:

源碼片段

  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

責(zé)任編輯:閆佳明 來源: devstore
相關(guān)推薦

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開發(fā)滾動視圖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

網(wǎng)易布局

2015-02-06 18:29:09

仿滴滴打車android

2015-02-28 15:15:47

插件Android桌面插件

2015-10-12 11:19:35

墨跡天氣引導(dǎo)界面android

2011-11-02 10:57:24

Instagram移動應(yīng)用照片分享

2013-08-06 15:13:57

Android 4.3源碼

2015-10-12 11:25:20

android大眾點(diǎn)評下拉動畫

2014-12-30 11:04:39

懶人筆記

2012-05-11 14:10:21

Instagram技術(shù)

2015-07-13 14:05:32

ios開發(fā)多表視圖

2012-04-05 09:52:04

AndroidInstagram
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號