zoukankan      html  css  js  c++  java
  • UIActionSheet 传值

    #pragma mark - actionSheet

    - (void)shareOrder:(NSDictionary *)product

    {

        UIActionSheet *as = [[UIActionSheet alloc] initWithTitle:VIMILocalizedString(@"分享", nil) delegate:self cancelButtonTitle:VIMILocalizedString(@"取消", nil) destructiveButtonTitle:nil otherButtonTitles:

                             @"分享给微信好友",

                             @"分享给QQ好友", 

                            @"晒单到QQ空间" ,  nil];

        objc_setAssociatedObject(as, @"product", product, OBJC_ASSOCIATION_RETAIN);

        [as showInView:self.view];

    }

     - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {   

        NSDictionary *product = objc_getAssociatedObject(actionSheet, @"product");

        }

  • 相关阅读:
    javascript基础
    html基础
    css基础
    django-session和cookie
    rest架构
    django-models
    django-templates
    Alignment
    ural 1225.Flags
    ural 1009. K-based Numbers
  • 原文地址:https://www.cnblogs.com/zhujin/p/3932753.html
Copyright © 2011-2022 走看看