Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 79

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
02/19/13 04:47 PM (12 years ago)

iCarousel Plugin Button Resize Issue!

Hi I have tried change the width of my image button in the iCarousel plugin, but it won't change and stays at the default 200px width. Anyone know how to change the width?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/19/13 06:00 PM (12 years ago)
resolved
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/20/13 01:52 AM (12 years ago)
Hi Dragon007, How did you solve the problem? I have the same issue with small devices. Thanks,
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/20/13 07:42 AM (12 years ago)
Hi Korkut I changed the size of the button in the Buzz_carousel.m file and about 3 quarters down the page you will see a section: //viewForItemAtIndex with reflection... -(UIView*)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(ReflectionView *)view{ [BT_debugger showIt:self:@"viewForItemAtIndex"]; UIImageView *button; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { //return a standard UIImageView object with the image from the array of images... view = [[[ReflectionView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 150.0f)] autorelease]; button = [[[UIImageView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 150.0f)] autorelease]; }else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){ //return a standard UIImageView object with the image from the array of images... view = [[[ReflectionView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 400.0f, 400.0f)] autorelease]; button = [[[UIImageView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, 400.0f, 400.0f)] autorelease]; Where you see 150, that is what I had changed my buttons to that size. Hope this helps as I'm not a strong coder. Good luck!
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/20/13 04:55 PM (12 years ago)
Thanks so much. Now it works nice...
 
GJvanWijk
I hate code!
Profile
Posts: 95
Reg: Dec 19, 2011
location unknow...
6,000
like
04/01/13 03:00 AM (12 years ago)
Moved my reply to a new topic.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.