您的位置:时时app平台注册网站 > 编程知识 > 多线程的简单使用时时app平台注册网站

多线程的简单使用时时app平台注册网站

2019-09-12 22:30

//添加附件

}

@"",

//发送信息的实现代理方法

BOOLresult = [[NSUserDefaultsstandardUserDefaults]boolForKey:@"ziDong"];

UIImageView* imageView = [[UIImageViewalloc]init];

}

navFour.title=@"4";

imageView.image= [UIImageimageWithData:data];

}

- (BOOL)tabBarController:(UITabBarController*)tabBarController shouldSelectViewController:(UIViewController*)viewController{

//UIImageView * imageView = [self.view viewWithTag:AddTag i];

messageVC.recipients=@[@"15385548670"];

#import"TwoViewController.h"(要点击的那个tabbar所在的页面,这个页面我在这就不写了)

}

信息正文body,

self.viewControllers= vcArry;

//更新UI需要主线程

}

[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(logSelect:)name:@"logSelect"object:nil];//接收

UIImageView* imageView = [[UIImageViewalloc]init];

MFMessageComposeViewController*messageVC = [[MFMessageComposeViewControlleralloc]init];

}else

@"",

messageVC.messageComposeDelegate=self;

btnLogin.frame=CGRectMake(100,300,100,30);

}

@interfaceViewController()

NSString*str = [NSStringstringWithFormat:@"%ld",self.selectedInde];

}

//法一:没有弹窗提示直接运行不能回到原来的应用程序

[self dismissViewControllerAnimated:YEScompletion:nil];

imageView.tag=AddTag i;

设置代理messageComposeDelegate(注意这里不是delegate属性,因为delegate属性已经留给UINavigationController,MFMessageComposeViewController没有覆盖此属性而是重新定义了一个代理),实现代理方法获得发送状态。

UIButton*btnLogin = [UIButtonbuttonWithType:UIButtonTypeCustom];

__weaktypeof(self)weakSelf =self;

if(_webView==nil) {

}elseif([viewController.tabBarItem.titleisEqualToString:@"3"]) {

2016-06-02 17:16:10.613多线程处理[10062:210446] callMainAfter

- emailButtonAction:(UIButton*)button

navOne.tabBarItem.image= [[UIImageimageNamed:@"icon"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

if(i >0) {

//设置代理

}else{

//

}

//将数组传给UITabBarController

NSURL*url=[NSURLURLWithString:weakSelf.urlArr[i]];

[mailVCsetSubject:@"主题"];

backBtn.frame=CGRectMake(0,20,60,40);

2016-06-02 17:13:47.618多线程处理[10042:208753] callMainbefore_1

//设置收件人

UINavigationController*navOne = [[UINavigationControlleralloc]initWithRootViewController:oneVc];

CGFloatspace =10;

MFMailComposeViewController*mailVC = [[MFMailComposeViewControlleralloc]init];

[selfdismissViewControllerAnimated:YEScompletion:^{

//添加方法

//设置短信内容

[backBtnsetTitle:@"返回"forState:UIControlStateNormal];

waitUntilDone:NO

//设置邮件主题

- (void)btnLoginAction {

//Created by S u p e r m a n on 2017/3/14.

//设置收件人可设置多个

}

@property(nonatomic,strong)UIImageView* imageView;

UIButton*phoneButton = [UIButtonbuttonWithType:UIButtonTypeCustom];

}elseif([viewController.tabBarItem.titleisEqualToString:@"2"]) {

2016-06-02 17:16:05.607多线程处理[10062:210446] callMainbefore_2

[self.viewaddSubview:phoneButton];

}];

});

[self.viewaddSubview:messageButton];

@interfaceLoginViewController()

//

//引入框架

//创建一个数组包含四个导航栏控制器

}

- phoneButtonAction:(UIButton*)button

NSLog(@"4444");

NSOperationQueue* queue = [[NSOperationQueuealloc]init];

UIButton*messageButton = [UIButtonbuttonWithType:UIButtonTypeCustom];

NSDictionary*dict =@{@"logSelect":str};

//ViewController.m

- viewDidLoad {

selectedInde =2;

- (void)threadClick {

[emailButtonsetTitleColor:[UIColorredColor]forState:UIControlStateNormal];

self.view.backgroundColor= [UIColorcolorWithString:@"#eeeeee"];

CGFloatimageWH = (320-10*5)/4.0;

[messageButtonsetTitle:@"发信息"forState:UIControlStateNormal];

}

sleep(5);

[mailVCaddAttachmentData:datamimeType:@"image/png"fileName:@"2.png"];

UIButton*backBtn = [UIButtonbuttonWithType:UIButtonTypeCustom];

dispatch_async(dispatch_get_main_queue(), ^{

//创建一个请求

[self.viewaddSubview:backBtn];

//

创建MFMessageComposeViewController对象。

if([viewController.tabBarItem.titleisEqualToString:@"1"]) {

}

// NSURL *url = [NSURL URLWithString:@"tel://15385548670"];

{

imageView.tag=AddTag i;

[phoneButtonaddTarget:selfaction:@selector(phoneButtonAction:)forControlEvents:UIControlEventTouchUpInside];

navThree.title=@"3";

for(NSIntegeri =0; i

messageVC.body=@"

本文由时时app平台注册网站发布于编程知识,转载请注明出处:多线程的简单使用时时app平台注册网站

关键词: