Results 1 to 3 of 3
Discuss [Popup][Solved] Adding an Action Statement ? at the iPhone Developer Exchange - Hackint0sh.org; Hi, I just made a Hello World App with Interface Builder Integration with XCode and ...
  1. #1
    Professional Array

    Join Date
    Jun 2008
    Posts
    68
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default [Popup][Solved] Adding an Action Statement ?

    Hi,

    I just made a Hello World App with Interface Builder Integration with XCode and gave it an icon.
    Now I want to put a button, when clicked, displays a pop-up with a message an an OK button.

    How do I do this....



  2. #2
    Amazingly Knowledgeable Array jashsayani's Avatar

    Join Date
    Dec 2007
    Location
    Salt Lake City, UT
    Posts
    958
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    55

    Default

    Declare in header file:

    - (IBAction)onButtonClick: (id)sender;

    Where OnButtonClick is what you have used in IB

    In main file, put code in function:

    @implementation ClassNameHere

    - (IBAction)onButtonClick: (id)sender {

    //Your action code goes here...

    }

    @end



    Hope this helps...
    My iPhone
    iPhone 4 (32 GB) Black, Firmware 4.1

    My Mac mini
    2.0 GHz Dual core, 2GB RAM, 160 GB HDD, Leopard 10.5.8

    My MacBook
    2.0 GHz Dual core, 4 GB RAM, 160 GB HDD, SnowLeopard 10.6.4

    My Blogs:
    Jash's Blog: http://www.jashsayani.com
    The iFone Blog: http://theifoneblog.blogspot.com

  3. #3
    Professional Array

    Join Date
    Jun 2008
    Posts
    68
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    Thanks! That solved my problem

    I put the UIAlertView inside the function and my app started working!!! Thanks,

 

 

Similar Threads

  1. leo4all v3 installation no popup
    By jasonp in forum Archiv (Leopard)
    Replies: 22
    Last Post: 10-03-2008, 02:58 PM
  2. Hack to disable SMS popup?
    By sugarola in forum General
    Replies: 9
    Last Post: 08-12-2008, 01:08 AM
  3. [Req] App to turn off the SMS popup notification
    By reznor9 in forum Free Toolchain Software (Cydia App's)
    Replies: 4
    Last Post: 06-04-2008, 01:58 PM
  4. [1.1.4] disable SMS popup?
    By Hecro in forum General
    Replies: 11
    Last Post: 03-21-2008, 06:17 PM
  5. SMS Popup
    By djlysuc in forum General
    Replies: 0
    Last Post: 09-13-2007, 11:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:12 AM.
twitter, follow us!