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 03-25-2010, 05:30 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 12
johnlikesit is on a distinguished road
Default Subclass of UIView receive action?

Hey guys.

I want to make a grid like in photos.app. (I don't want to use Three20 ;-))

I got a UIViewController and a custom subclass of UIView.

my customView.h

Code:
@interface customView : UIView {

}
-(void)showOverlay;
-(void)hideOverlay;

@end
I allocate an instance of that cutomView in my UIViewController with
Code:
customView *myCustomView = [[customView alloc] initWithFrame:CGRectMake(0,0,200,200)];
If I doubletap the instance of the custom view, the subview turn black(the overlay)

If I want to hide that overlay I have to call the function -(void)hideOverlay within my subclass.

But how do I access that subclass?

I thought of delegate but didn't get it working.

Later if this will work I want to make many instances (as required in a grid :-))

Thanks a lot!!!

Last edited by johnlikesit; 03-25-2010 at 05:32 PM.
johnlikesit is offline   Reply With Quote
Reply

Bookmarks

Tags
action, delegate, notification, subclass, uiview

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: 351
13 members and 338 guests
akacaj, c2matrix, cgokey, esoteric, GHuebner, givensur, HemiMG, Mirotion22, mjnafjke, Pudding, SLIC, Sonuye857, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,652
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Sonuye857
Powered by vBadvanced CMPS v3.1.0

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