Welcome to iPadForums.net Guest - Click Here to Register

IBAction Call

This is a discussion on IBAction Call within the iPad Development forums, part of the iPad App Store category; Help Please, I'm new. I've been working on a plotting function that used a draw2D routing I found on line. I need to call the ...

Register with iPad Forums
+ Reply to Thread
Results 1 to 9 of 9

Thread: IBAction Call

  1. #1
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12

    IBAction Call


    Help Please,

    I'm new. I've been working on a plotting function that used a draw2D routing I found on line. I need to call the routine from IBAction with a date picker change and want to pass the date in the date picker. So basically I want to combine the IBAction and the plotting on the following two routines. Unsure how to combine them.

    -(IBAction)showDate: (id) sender {
    //date calculations.....
    }

    - (id)initWithFrame: (CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    // Initialization code
    }
    return self;
    }

    - (void)drawRect: (CGRect)rect {
    //drawing code
    }


  2. #2
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12
    OK I tried some experiments that didn't work. For clarification I have a routine that draws some lines with these two declarations:

    - (id)initWithFrame: (CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    // Initialization code
    }
    return self;
    }

    - (void)drawRect: (CGRect)rect {
    //drawing code
    }

    What I want is, for that to happen only when I push a button or some other action. I clearly don't understand the structure of the calls or I'd be able to do this. Can someone help me.

    Drew

  3. #3
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12
    I am simply amazed. I asked this question yesterday at 12 and have had 71 people look at it without an answer. Come on. I'm not looking for the secret to life or an explanation of string theory. Just want to use an IBAction to draw a line. Is there anyone out there that that can actually program in this God awful language that will help me? Please....

  4. #4
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,227
    Most of the people here are users, not developers. I see a moderator moved your post to the developer section, but it is more than possible that none of them have seen this, or that the few that have do not have an answer for you.

    My own experience puts me some where between the user and developer (heavily biased towards user), and other than recognizing the code I haven't a clue.

  5. #5
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12
    Twerppoet,

    Thanks much. I simply couldn't understand why no one posted a reply. I know this isn't a difficult question for a developer. I will go to work tomorrow and get someone to help me. I was hoping to get some help while on vacation to keep my project moving. I'm going to write free ware for educational projects for kids if I ever get proficient at Objective C and I Pad programming. Just getting started.

    Drew

  6. #6
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,227
    Good luck with that. It is a worthy cause.

    Have you checked out KhanAcademy? They have an iPhone app, and are working on an iPad one. Seems like a group you'd be interested in, if you don't' already know about them.

  7. #7
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12
    twerppoet,

    Nope didn't know that, thanks for the tip.

    having fun.

    Drew

  8. #8
    iPad Fan!
    Member #
    73337
    Join Date
    Jul 2011
    Location
    Maryland
    Posts
    12

    I figured it out

    Got it done!

  9. #9
    iPF Elite
    Member #
    28530
    Liked
    176 times
    Join Date
    Jan 2011
    Location
    Dayton, WA
    Posts
    9,227
    Nice! Onward ho.


Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. IBAction Call
    By swilker in forum iPad General Discussions
    Replies: 0
    Last Post: 07-24-2011, 08:23 PM
  2. How can use my sim in ipad to call and sms
    By Smksalmi in forum iPad 2 Forum
    Replies: 1
    Last Post: 05-05-2011, 04:51 PM
  3. Call me impatient...
    By debsylvania in forum iPad 2 Forum
    Replies: 14
    Last Post: 04-21-2011, 04:07 PM
  4. Finally got the call !!!
    By Applebaum in forum iPad General Discussions
    Replies: 2
    Last Post: 04-02-2011, 10:50 PM
  5. How to call from ipad using the gsm
    By Yogesh.dandawate in forum iPad Apps
    Replies: 3
    Last Post: 03-31-2011, 02:42 AM

Search tags for this page

(id)initwithframe:(cgrect)frame
,
- (ibaction)search:(id)sender
,
call (void)drawrect:(cgrect)rect
,
draw line ibaction
,
draw line with ibaction
,

how to use ibaction

,
ibaction
,
ibaction call another ibaction
,
ibaction call from code
,
ibaction draw
,

ibaction to draw a line

,
iphone ibaction draw line
,
objective-c how to call ibaction from another ibaction
Click on a term to search for related topics.