github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rcarlsen / ofxiPhoneWrappers

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A collection of wrappers for UIKit objects for use with ofxiPhone — Read more

  cancel

http://robertcarlsen.net/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

updated show() method to occur on main thread. 
Robert Carlsen (author)
Sat Aug 08 16:29:22 -0700 2009
commit  c5ffbc19247f3981d7dd56a1f34f8748988413c1
tree    a8c6b16a5c59e0bb43169b05566b2b0fa20c280a
parent  2b311aae02401ef4fbc6a139cea944a849224a3c
ofxiPhoneWrappers /
name age
history
message
file README Sat Jun 13 07:11:14 -0700 2009 adding missing quote mark in README [Robert Carlsen]
file ofxiPhoneAlertView.h Wed Jun 10 12:36:08 -0700 2009 updated the license of ofxiphonealertview to GPL [Robert Carlsen]
file ofxiPhoneAlertView.mm Loading commit data...
README
Simple wrappers for UIKit classes, written as necessary.

ofxiPhoneAlertView:
    // ofxiPhoneAlertView
    // setup the list of buttons
    vector<string> otherButtons;
    otherButtons.push_back("Button 1");
    otherButtons.push_back("Button 2");
    // the args are: title, message, cancel button title ("" == omitted), vector of other button titles
    ofxiPhoneAlertView *alert = new ofxiPhoneAlertView("Title","Here is the alert message.","",otherButtons);
    // display the alert view
    alert->show();
    
    // I'm using the following methods in update()
    // test if the alert is visible (bool):
    alert->isVisible();
    
    // test if the alert has been dismissed:
    alert->isDismissed();
    
    // get the selected button (int):
    alert->getSelectedButton();
    
    // if you use several alerts, you can distinguish between them via their title:
    alert->getTitle();
    
    // example logic:
    switch(alert->getSelectedButton()){
        case -1:
            // cancel, or no selection
            printf("alert = -1");
            break;
        case 0:
            // first, non-cancel button
            printf("alert = 0");
            break;
        case 1:
            // next button. will be the second button after Cancel
            printf("alert = 1, ok");
            break;
    }
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server