类方法的完成与实现

[selfpassmessagestr:_messagestr passpreviewImage:_previewImage passtitleString:_titleStr passurlstring:_urlstring passdescriptionstr:_descriptionStr passid:squareModel.id];


-(void)passmessagestr:(NSString*)messagestr passpreviewImage:(NSString*)previewImagestr passtitleString:(NSString*)titlestr passurlstring:(NSString*)urlstring passdescriptionstr:(NSString*)descriptionstr passid:(NSString*)idstr{


    _fenxiangView = [[fenxiangViewController alloc]init];

    DJWeakSelf

    _fenxiangView.qqclickAllBtn = ^(NSString *str) {

        // NSLog(@"点击了qq分享str:%@",str);

        weakSelf.qqfenxiangstr= str;

        //weakSelf.passQQIdStr =str;

    };

    _fenxiangView.qqclickAllBtn = ^(NSString *str) {


        weakSelf.qqfenxiangstr= str;

        // weakSelf.passQQIdStr = str;

    };

    _fenxiangView.messagestr = messagestr;

    _fenxiangView.previewImagestr = previewImagestr;

    _fenxiangView.titlestr = titlestr;

    _fenxiangView.urlstring = urlstring;

    _fenxiangView.descriptionstr = descriptionstr;

    _fenxiangView.idstr = idstr;

    _passQQIdStr= idstr;

    //    DJWeakSelf

    _fenxiangView.clickallBtnBlock = ^(UIButton *btn) {

        //NSLog(@"点击的是allbtnclick");

        [weakSelfshouqifangfa];

    };

    [self addChildViewController:_fenxiangView];

    UIView*view =_fenxiangView.view;

    // view.backgroundColor = [UIColor redColor];

    view.frame=CGRectMake(0,HEIGHT,WIDTH,HEIGHT);

    [self.viewaddSubview:view];

    [UIView animateWithDuration:0.01 animations:^{

        view.frame=CGRectMake(0,0,WIDTH,HEIGHT);

    }];



}

你可能感兴趣的:(类方法的完成与实现)