icarousel

NSMutableArray Difficulty

爱⌒轻易说出口 提交于 2019-12-04 19:22:28
If you wanna see the code Im having problem with, here is the link: Code My question is connected with my past question . I'm really having problem with my NSMutableArray , I'm currently using iCarousel for my slotMachine object(slot1 and slot2). My app works this way: From PhotoViewController I made a view that has thumbnail images, then assign its frame with button. So if 1 image was pressed, it will save that integer via NSUserDefaults . Then I will retrieve it in my carouselViewController Im thinking of adjusting the array but I can't. I also have tried my question here: Comparing with

Autoscrolling infinite effect in .linear type of iCarousel in swift

不打扰是莪最后的温柔 提交于 2019-12-04 05:24:50
问题 I need infinite autoscrolling effect in .linear type in iCarousel and i already achieve autoscrolling in .cylinder type but i can't achieve this effect in .linear type. Here is my code of achieve autoscrolling in .cylinder type carousel.type = .linear carousel.autoscroll = -0.4; carousel.reloadData() 回答1: Yes, this does not work carousel.type = .linear in the case of linear so you have to make an own timer for scrolling just like that: self.timer = NSTimer.scheduledTimerWithTimeInterval(6,

Autoscrolling infinite effect in .linear type of iCarousel in swift

泄露秘密 提交于 2019-12-02 03:00:41
I need infinite autoscrolling effect in .linear type in iCarousel and i already achieve autoscrolling in .cylinder type but i can't achieve this effect in .linear type. Here is my code of achieve autoscrolling in .cylinder type carousel.type = .linear carousel.autoscroll = -0.4; carousel.reloadData() Yes, this does not work carousel.type = .linear in the case of linear so you have to make an own timer for scrolling just like that: self.timer = NSTimer.scheduledTimerWithTimeInterval(6, target: self, selector: #selector(self.handleTimer), userInfo: nil, repeats: true) func handleTimer(){ if

Mac Dock like magnification for iPad

痞子三分冷 提交于 2019-11-29 00:09:57
问题 I am trying to bring out dock like magnification effect for my iPad app thru iCarousel library. With that i am able to zoom in the center item of the carousel with the following piece of code, but trying to zoom the adjacent items of the centre item with zoom level little less than the centre item. - (CATransform3D)carousel:(iCarousel *)_carousel itemTransformForOffset: :(CGFloat)offset baseTransform:(CATransform3D)transform { CGFloat MAX_SCALE = 1.95f; //max scale of center item CGFloat MAX

Mac Dock like magnification for iPad

◇◆丶佛笑我妖孽 提交于 2019-11-28 19:56:42
I am trying to bring out dock like magnification effect for my iPad app thru iCarousel library. With that i am able to zoom in the center item of the carousel with the following piece of code, but trying to zoom the adjacent items of the centre item with zoom level little less than the centre item. - (CATransform3D)carousel:(iCarousel *)_carousel itemTransformForOffset: :(CGFloat)offset baseTransform:(CATransform3D)transform { CGFloat MAX_SCALE = 1.95f; //max scale of center item CGFloat MAX_SHIFT = 40.0f; //amount to shift items to keep spacing the same CGFloat shift = fminf(1.0f, fmaxf(-1.0f

My Custom Button is not getting click in iCarousel iOS?

一曲冷凌霜 提交于 2019-11-28 01:40:06
问题 In my example I am using iCarousel in which I am trying to expand image on clicking on it? What I have done,after image expands I am adding backButton on right bottom corner of view so that I can return to the original view. But that button is not getting click event. Where am I going wrong? here is my code. - (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view{ UIButton *button = (UIButton *)view; UIView *buttonBackView=[[UIView alloc

Scale items with iCarousel

随声附和 提交于 2019-11-27 11:00:09
问题 I was trying to use iCarousel for one my solutions, I need to achieve something like the image below It should be exactly the way iCarouselOptionFadeMin iCarouselOptionFadeMax iCarouselOptionFadeRange iCarouselOptionFadeMinAlpha works using - (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value I tried to create a function exactly like - (CGFloat)alphaForItemWithOffset:(CGFloat)offset I discovered that it cane be done using offset values,