Action sheet in objective-c

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harita12
    New Member
    • Apr 2009
    • 6

    Action sheet in objective-c

    hi, Am new to objective-c. I hav done with how to open an Action sheet on button's click. Now, i want that the when i click on button of action sheet then the text value of the button is shown on the button(which is used to open the action sheet)......so, if anyone cud give the code of actionSheet:cli ckedButtonAtInd ex: method. plz reply to my query..thanks
  • Jyoti Ballabh
    Banned
    New Member
    • Jul 2010
    • 115

    #2
    not sure of what exactly you are asking for here? can you give a little detail of the objective?

    Comment

    • Jyoti Ballabh
      Banned
      New Member
      • Jul 2010
      • 115

      #3
      Button indices start at 0. The default value of this property is normally -1, which indicates that no destructive button has been set. However, a destructive button may be created and set automatically by the initWithTitle:d elegate:cancelB uttonTitle:dest ructiveButtonTi tle:otherButton Titles: method. If you use that method to create a destructive button, you should not change the value of this property. You can use this method to dismiss the action sheet programmaticall y as needed. The action sheet also calls this method itself in response to the user tapping one of the buttons in the action sheet.

      In iOS 4.0, you may want to call this method whenever your application moves to the background. An action sheet is not dismissed automatically when an application moves to the background. This behavior differs from previous versions of the operating system, where they were canceled automatically when the application was terminated. Dismissing the action sheet gives your application a chance to save changes or abort the operation and perform any necessary cleanup in case your application is terminated later.

      Comment

      • Jyoti Ballabh
        Banned
        New Member
        • Jul 2010
        • 115

        #4
        Initializes the action sheet using the specified starting parameters.
        - (id)initWithTit le:(NSString *)title delegate:(id < UIActionSheetDe legate >)delegate cancelButtonTit le:(NSString *)cancelButtonT itle destructiveButt onTitle:(NSStri ng *)destructiveBu ttonTitle otherButtonTitl es:(NSString *)otherButtonTi tles, ...

        Comment

        Working...