icarousel

Adding custom gesture to iCarousel items

╄→гoц情女王★ 提交于 2019-12-11 04:06:34
问题 Hi I've been working with Xcode for a while and used UIGestureRecognizers many times now. At this moment i'm developing an iPad app that needs a carousel in it, so what's better then using iCarousel as i've already encountered it and I think it's great. I'm having some issues adding to the carousel items a UISwipeGestureRecognizer (I would use it to delete the "swiped" item). Would look easy but it just looks like the UIGestureRecognizer is not there, but if print view.recognizer I can see it

iCarousel not scrolling smoothly

蹲街弑〆低调 提交于 2019-12-10 22:15:01
问题 I'm using iCarousel to scroll labels. Everything works fine on Simulator, but on iPad/iPhone scrolling is not smoothly and quick Here is code. CitiesListView.h #import <UIKit/UIKit.h> #import "iCarousel.h" @interface CitiesListView : UIView <iCarouselDataSource, iCarouselDelegate> @property (nonatomic, retain) iCarousel *carousel; @end CitiesListView.m #import "CitiesListView.h" @interface CitiesListView () @property (nonatomic, retain) NSMutableArray *items; @end @implementation

How to have accessible swipe action for iCarousel

♀尐吖头ヾ 提交于 2019-12-10 11:58:33
问题 I am trying to make an accessible app. The problem arises when I wanted to have standard (Three-finger swipe right or left) behavior with iCarousel. Since iCarousel is not fully accessible by nature and it just lets user to have items be User intractable. I done some research, there are some workarounds but I also don't want to implement UIAccessibilityCustomAction cause this will not give the user easy to swipe ability. 回答1: You can override and implement accessibilityScroll(_:) method as:

Hiding back images in iCarouselTypeRotary view for iCarousel

匆匆过客 提交于 2019-12-08 16:47:26
问题 I have set images in iCarousel. When I scroll the carousel, it shows images in front and back. I do not want to display images in back. Please help. Thank you. 回答1: You'll need to change to a custom carousel type, and copy the implementation of iCarouselTypeRotary in your delegate. Then implement -carousel:itemAlphaForOffset: so that items around the back have an alpha of zero. 回答2: You should implement the delegate: - (CGFloat)carousel:(iCarousel *)_carousel valueForOption:(iCarouselOption

How can we change the fade color in iCarousel?

隐身守侯 提交于 2019-12-08 00:21:18
问题 Suppose, I want to apply blue color to fade-in and fade-out image, how can i achieve this? 回答1: Fade in and fade out are controlled by the delegate method: - (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value; This method is used to customise the parameters of the standard carousel types. By implementing this method, you can tweak options such as: iCarouselOptionFadeMin iCarouselOptionFadeMax iCarouselOptionFadeRange These three options

Get UIImageView using Afnetworking and put it in an array

旧巷老猫 提交于 2019-12-06 16:46:07
问题 As the title says, i need to get the image and put it in an array. UIImageView *myImage = [[UIImageView alloc] init]; [myImage setImageWithURL:[NSURL URLWithString:@"http://host.com/images/1/1.png"] placeholderImage:[UIImage imageNamed:@"page3.png"]]; [items addObject:myImage]; the problem is that while the image is being loaded, the code continues and nothing gets put in the array, actually I guess an empty UIImageView gets inserted. How do I go about fixing this? On a side note I am using

How can we change the fade color in iCarousel?

坚强是说给别人听的谎言 提交于 2019-12-06 11:18:00
Suppose, I want to apply blue color to fade-in and fade-out image, how can i achieve this? Fade in and fade out are controlled by the delegate method: - (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value; This method is used to customise the parameters of the standard carousel types. By implementing this method, you can tweak options such as: iCarouselOptionFadeMin iCarouselOptionFadeMax iCarouselOptionFadeRange These three options control the fading out of carousel item views based on their offset from the currently centered item. FadeMin

NSMutableArray Difficulty

梦想与她 提交于 2019-12-06 09:43:21
问题 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

iPhone - Carousel

為{幸葍}努か 提交于 2019-12-05 03:26:04
问题 I use open source, iCarousel in my application to bring the carousel control. The carousel type which I use is iCarouselTypeRotary and the images are arranged linearly in this type. But, I need the images to bring like the carousel in the attached images. What should I do to make my carousel little tilted to the top view as the style in the below images? Kindly help. Thanks in advance. 回答1: You can implement 3D tilt manually: In iCarousel.m : 574 return CATransform3DTranslate(transform,

Get UIImageView using Afnetworking and put it in an array

◇◆丶佛笑我妖孽 提交于 2019-12-04 21:46:46
As the title says, i need to get the image and put it in an array. UIImageView *myImage = [[UIImageView alloc] init]; [myImage setImageWithURL:[NSURL URLWithString:@"http://host.com/images/1/1.png"] placeholderImage:[UIImage imageNamed:@"page3.png"]]; [items addObject:myImage]; the problem is that while the image is being loaded, the code continues and nothing gets put in the array, actually I guess an empty UIImageView gets inserted. How do I go about fixing this? On a side note I am using iCarousel to display images, in the data source it gets the images array and shows them. Can i modify