Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-12-2010, 01:07 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 79
ramdas is on a distinguished road
Default question about page control

hello,
I am trying to develop a page control
The requirement is to show images which user can flick either from left to right or right to left
I am able to show these images and able to flick

The requirement also is to show the detail of that particular image ( artist name , created date , cost etc) when user clicks on that image

So basically on the click of the image - need to fire an event and am not able to do this
Can someone point me to some code sample which does this ?

Thanks,
~ramdas
ramdas is offline   Reply With Quote
Old 09-12-2010, 10:12 AM   #2 (permalink)
N3RD
 
Join Date: Oct 2009
Posts: 201
tychop is on a distinguished road
Default

You could just place a UIControl over the image.

Example:
Code:
/*!
 @method     
 @abstract Creates an area to tap on & perform an action.
 */
- (void) createUITapControl {
	// uicontrol
	UIControl *tapControl = [[UIControl alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
	[[self view] addSubview:tapControl];
	[tapControl addTarget:self action:@selector(tapAction) forControlEvents:UIControlEventTouchDown];
	[tapControl release];
}
tychop is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 348
9 members and 339 guests
cgokey, givensur, iGamesDev, jenniead38, mraalex, PixelInteractive, raihan.zbr, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0