MBProgress的使用方法

2022-03-21 18:56:55 字數 1039 閱讀 6016

1.mbprogresshud 的彈窗的訊息的介面,三種的方式:

第一種的方式: 

-(void)mytask completionblock:^{

[hud removefromsuperview];

[self show];

-(void)show {

[self.hud removefromsuperview];

testviewcontroller *test = [[testviewcontroller alloc]init];

[self presentviewcontroller:test animated:yes completion:nil];

第三種方式:(整個螢幕都充滿)

-(void)mytask2{

self.hud = [[mbprogresshud alloc]init];

self.hud = [mbprogresshud showmessage:@"正在查詢,請稍等片刻"];

self.hud.delegate = self;

self.timer =   [nstimer scheduledtimerwithtimeinterval:10 target:self selector:@selector(show) userinfo:nil repeats:no];   

-(void)show {

[self.hud removefromsuperview];

testviewcontroller *test = [[testviewcontroller alloc]init];

[self presentviewcontroller:test animated:yes completion:nil];

#pragma  mark - mbprogresshud (mb裡面沒有這個**方法,新加了乙個方法)

nslog(@"呼叫hud的**方法");

[self.hud removefromsuperview];

self.timer = nil;

self.hud = nil;

pythonpip使用方法 pip使用方法整理

匯出專案已安裝的pip包 pip list 檢視專案中安裝的包 pip freeze requirements.txt 將專案中所用到的第三方庫輸出到requirements.txt中 pip install 版本號 pip install i 本次使用清華源進行安裝 離線安裝第三方庫 一鍵安裝整個...

機械秒錶的使用方法 秒錶的使用方法!

秒錶是一種常用的測時儀器。又可稱 機械停表 由暫停按鈕 發條柄頭 分針等組成。它是利用擺的等時性控制指標轉動而計時的。它是利用擺的等時性控制指標轉動而計時的。在它的正面是乙個大表盤,上方有乙個小表盤 圖1.4 2 秒針沿大表盤轉動,分針沿小表盤轉動。分針和秒針所指的時間和就是所測的時間間隔。在表正上...

使用方法 離型劑使用方法

1 使用離型劑前必須確保模具乾淨,無粉塵 蠟垢 樹脂垢 油汙等殘留物質。可以使用專用的模具潔模劑進行清洗,不可用其他液體清洗,以免清洗不乾淨或損壞模具。另外,如果您的模具是新的,在清洗乾淨後,務必要對模具進行初步處理,用離型劑在模具表面噴 刷塗5 6次,之後方可正常投入生產。2 使用離型劑時,首先要...