iphone - Sending MMS and Email from within app -
how 1 pop menu selection email, mms etc used when image selected on iphone.
another thing, how can 1 add things menu e.g. facebook share, twitter share? name of menu?
this menu called uiactionsheet , write code determines presented yourself. handle tap through actionhandler , can use code below present menu. can enter own nsstring facebook, twitter, etc.
uiactionsheet *actionsheet = [[uiactionsheet alloc] initwithtitle: [[nsstring alloc] initwithformat: @"how should something?"] delegate: self cancelbuttontitle: @"cancel" destructivebuttontitle: nil otherbuttontitles: @"choice 1", @"choice 2", @"choice 3", nil]; [actionsheet setactionsheetstyle: uiactionsheetstyleblacktranslucent]; // need in main view otherwise "z-order" tab bar takes precedence , "covers up" lower half of // cancel button [actionsheet showinview: [self view]]; [actionsheet release];
you able register delegate notification handle button tapped using uiactionsheetdelegate
- (void)actionsheet:(uiactionsheet *)actionsheet clickedbuttonatindex:(nsinteger)buttonindex
Comments
Post a Comment