纽带是什么意思| 谷草谷丙偏高是什么意思| 干什么最赚钱| 癫痫是什么| 沙棘不能和什么一起吃| 口臭口苦什么原因引起的| 溢水是什么意思| 辟谷什么意思| 藏青和藏蓝有什么区别| 梦见头上长虱子是什么意思| 嗨体水光针有什么功效| 什么叫出柜| 酸菜鱼一般用什么鱼| 什么是矿泉水| opt是什么意思| 拔罐颜色紫黑代表什么| 靖国神社是什么| 脾气暴躁易怒是什么病| 区委书记属于什么级别| 手机充电慢是什么原因| 美国为什么不建高铁| rem什么意思| 猪油吃多了有什么好处和坏处| 查脂肪肝挂什么科室| 掼蛋是什么意思| 大豆和黄豆有什么区别| 冬枣不能和什么一起吃| 饱不洗头饿不洗澡是为什么| 风寒水饮是什么意思| 头上长了个包挂什么科| 金字旁成是什么字| 做背有什么好处及作用| 阴茎硬不起吃什么药| 半夜12点是什么时辰| 太作了是什么意思| 精神食粮是什么意思| 做头发是什么意思| 童瑶为什么要告黄定宇| 颈椎钙化是什么意思严重么| 糙皮病是什么病| 印第安人是什么人种| 眼底筛查是检查什么| 发热出汗是什么原因| 甘油三酯是指什么| 什么是八字生辰八字| 囊内可见卵黄囊是什么意思| 申时五行属什么| 黄酮对女性有什么作用| 恍惚什么意思| 女性hpv阳性是什么意思| 茶宠为什么会变色| 什么是排卵期| 158是什么意思| 脾肾阴虚有什么症状| 27年属什么生肖| 孩子爱流鼻血是什么原因| 杨桃长什么样| 什么人容易得红斑狼疮| 什么然| 什么叫动脉硬化| fabric是什么面料| 头孢和什么不能一起吃| 长春新碱是什么药| 半路杀出个程咬金是什么意思| 不拘小节是什么意思| 什么东西化痰效果最好最快| 显赫是什么意思| 信保是什么| 口苦吃什么中药| 5月4日是什么星座| 喝蜂蜜水不能吃什么| 瞳孔放大意味着什么| 胃烧灼吃什么立马缓解| 铜镯子对人有什么好处| 结缔组织病是什么病| 为什么会长痱子| 舌苔厚腻吃什么药| 甲状腺结节有什么症状表现| 回族不吃什么肉| 什么是视同缴费| reebok是什么牌子| 玉对人身体健康有什么好处| 胎方位loa是什么意思| 脉滑是什么意思| 送礼送什么烟比较好| 什么东西最伤肾| 针眼是什么样子的图片| 尿液检查红细胞高是什么原因| 总胆红素偏高有什么危害| 11月7号是什么星座| 囊性无回声是什么意思| 受委屈是什么意思| 办狗证需要什么资料| 上海市长是什么级别| 梦见性生活是什么意思| 糖是什么意思| 北极熊代表什么生肖| hpv亚临床感染是什么意思| 长期贫血会导致什么严重后果| 梦见和死去的人说话是什么意思| 羊白是什么| 六月二十五号是什么星座| 钉钉是什么| 深渊什么意思| 挚友是指什么的朋友| fredperry是什么牌子| 什么能力| 多汗症是什么原因引起的| 骨头疼是什么病的征兆| 舌尖长溃疡是什么原因| 洛阳有什么好玩的| 干燥综合症挂什么科| 痃癖是什么病| 什么时候恢复的高考| 查怀孕做什么检查| 猫咪呕吐吃什么药可以解决| 鱼完念什么| 香蕉有什么功效和作用| 孕妇用什么牙膏比较好| jeans是什么品牌| 拔牙第二天可以吃什么| 病毒性感冒发烧吃什么药| 驿站什么意思| 放疗有什么副作用| 误机是什么意思| 冬天吃什么| 弯弯的月儿像什么| 出片是什么意思| 血小板减少是什么病| 海菜是什么| 误喝碘伏有什么伤害吗| 餐边柜放什么东西| 没晨勃说明什么问题| cd20阳性什么意思| 荷花什么时候开花| 做肠镜要做什么准备| 头晕恶心什么原因| 37什么意思| iu是什么意思| 判官是什么意思| 手抓饼里面夹什么好吃| 褥疮用什么药最好| 稷是什么农作物| 不自爱是什么意思| 甘油三酯是指什么| 洋葱炒什么| er是什么| 神经炎吃什么药| 2.22什么星座| 什么时候种大白菜| b1是什么| 如期是什么意思| 王字旁行念什么| 梦见偷鸡是什么预兆| 圭是什么意思| 口若悬河什么意思| 缘起是什么意思| 军士长是什么军衔| 麻烦别人说什么礼貌用语| 什么叫同理心| 续集是什么意思| 麦冬和什么相克| 精神分裂症吃什么药| 吃什么可以修复子宫内膜| 铁蛋白低是什么意思| 32属什么生肖| 吃什么能增加免疫力| 心驰神往是什么意思| 肛门指检是检查什么| 宝宝出牙晚是什么原因| ccu病房是什么意思| 3岁属什么生肖| 猴子尾巴的作用是什么| 人到无求品自高什么意思| 左室舒张功能减退是什么意思| 嫡传弟子是什么意思| 治疗神经痛用什么药最有效| 义务兵是什么意思| 形态欠规则是什么意思| 崩漏下血是什么意思| 舌头尖发麻是什么原因| 隶属什么意思| 猫喜欢什么样的人| 膀胱炎吃什么药好得快| 眼睛发黑是什么原因引起的| 新房开火有什么讲究| 时间短吃什么药| 勃不起来吃什么药| 白天梦见蛇是什么预兆| 悬雍垂发炎吃什么药| 门当户对指的是什么| 男性雄激素低吃什么药| 私生子什么意思| 肚子痛吃什么药| 梦见自己抬棺材是什么意思| 胃不舒服能吃什么水果| 外阴有白色的东西是什么| 甲状腺结节什么原因引起的| 胆囊是什么| hpv阳性有什么症状| exr是什么牌子| 七月九号是什么日子| 送女生礼物送什么好| 妇科千金片和三金片有什么区别| microsd卡是什么卡| 浑身酸疼是什么原因| 四川芽菜是什么菜| 梦见拉屎是什么意思| 憨包是什么意思| 试桩是什么意思| 一月是什么月| 热锅凉油是什么意思| 尿气味很重是什么原因| 面部发红是什么原因| 什么是脱肛| 大便有粘液什么原因| 自叹不如什么意思| 2006年什么年| 司法警察是做什么的| 太原为什么叫龙城| 老年阴道炎用什么药| 正畸和矫正有什么区别| 李子有什么功效| 杨柳是什么生肖| 卵泡刺激素是什么意思| 结肠多发息肉是什么意思| 落地签是什么意思| 400能上什么大学| kj是什么意思| 尿妊娠试验是检查什么| fizz是什么意思| 肺部硬结灶是什么意思| 氟哌噻吨美利曲辛片治什么病| 什么是焦虑| 女金片的功效与作用是什么| 吃了布洛芬不能吃什么| 报捕是什么意思| 李讷为什么不姓毛| 1月26号是什么星座| 什么是辅警| 老年人腿脚无力是什么原因| 李克勤属什么生肖| 什么是射线| 豆角没熟中毒什么症状| 肉桂是什么味道| 洋葱和什么不能一起吃| 社区建档需要什么资料| 感冒流清鼻涕吃什么药| cashmere是什么面料| 儿童掉头发什么原因| 乳头有点痒是什么原因| alcon是什么牌子| 虚劳病是什么病| 马失前蹄下一句是什么| 石见读什么| 车字旁有什么字| 怀孕不能吃什么东西| 一个三点水一个及念什么| 凡人修仙传什么时候写的| 尿蛋白是什么原因| 中暑是什么症状表现| 什么叫脂肪肝| 味素是什么| 丹毒病是什么原因引起的| 百度

CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

栗战书看望参加人大会议报道的新闻工作者

MBProgressHUD 1.2.0

TestsTested ?
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2020
百度 郑晓松同志强调,党的十八大以来,以习近平同志为核心的党中央坚定不移推进全面从严治党,开创了党的建设全新局面,党的十八届六中全会把严格党内政治生活上升到前所未有的高度,中联部机关党员干部要进一步提升政治站位和政治能力,深刻领悟严格党内政治生活的重大意义、根本要求、方式方法和实现路径。

Maintained by Matej Bukovinski.



  • By
  • Matej Bukovinski

MBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features.

NOTE: The class has recently undegone a major rewrite. The old version is available in the legacy branch, should you need it.

Requirements

MBProgressHUD works on iOS 6+ and requires ARC to build. It depends on the following Apple frameworks, which should already be included with most Xcode templates:

  • Foundation.framework
  • UIKit.framework
  • CoreGraphics.framework

You will need the latest developer tools in order to build MBProgressHUD. Old Xcode versions might work, but compatibility will not be explicitly maintained.

Adding MBProgressHUD to your project

Source files

Alternatively you can directly add the MBProgressHUD.h and MBProgressHUD.m source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop MBProgressHUD.h and MBProgressHUD.m onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include MBProgressHUD wherever you need it with #import "MBProgressHUD.h".

Static library

You can also add MBProgressHUD as a static library to your project or workspace.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop MBProgressHUD.xcodeproj onto your project or workspace (use the "Product Navigator view").
  3. Select your target and go to the Build phases tab. In the Link Binary With Libraries section select the add button. On the sheet find and add libMBProgressHUD.a. You might also need to add MBProgressHUD to the Target Dependencies list.
  4. Include MBProgressHUD wherever you need it with #import <MBProgressHUD/MBProgressHUD.h>.

Usage

The main guideline you need to follow when dealing with MBProgressHUD while running long-running tasks is keeping the main thread work-free, so the UI can be updated promptly. The recommended way of using MBProgressHUD is therefore to set it up on the main thread and then spinning the task, that you want to perform, off onto a new thread.

[MBProgressHUD showHUDAddedTo:self.view animated:YES];
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
    // Do something...
    dispatch_async(dispatch_get_main_queue(), ^{
        [MBProgressHUD hideHUDForView:self.view animated:YES];
    });
});

You can add the HUD on any view or window. It is however a good idea to avoid adding the HUD to certain UIKit views with complex view hierarchies - like UITableView or UICollectionView. Those can mutate their subviews in unexpected ways and thereby break HUD display.

If you need to configure the HUD you can do this by using the MBProgressHUD reference that showHUDAddedTo:animated: returns.

MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDModeAnnularDeterminate;
hud.labelText = @"Loading";
[self doSomethingInBackgroundWithProgressCallback:^(float progress) {
    hud.progress = progress;
} completionCallback:^{
    [hud hide:YES];
}];

You can also use a NSProgress object and MBProgressHUD will update itself when there is progress reported through that object.

MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDModeAnnularDeterminate;
hud.labelText = @"Loading";
NSProgress *progress = [self doSomethingInBackgroundCompletion:^{
    [hud hide:YES];
}];
hud.progressObject = progress;

UI updates should always be done on the main thread. Some MBProgressHUD setters are however considered "thread safe" and can be called from background threads. Those also include setMode:, setCustomView:, setLabelText:, setLabelFont:, setDetailsLabelText:, setDetailsLabelFont: and setProgress:.

If you need to run your long-running task in the main thread, you should perform it with a slight delay, so UIKit will have enough time to update the UI (i.e., draw the HUD) before you block the main thread with your task.

[MBProgressHUD showHUDAddedTo:self.view animated:YES];
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.01 * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
    // Do something...
    [MBProgressHUD hideHUDForView:self.view animated:YES];
});

You should be aware that any HUD updates issued inside the above block won't be displayed until the block completes.

For more examples, including how to use MBProgressHUD with asynchronous operations such as NSURLConnection, take a look at the bundled demo project. Extensive API documentation is provided in the header file (MBProgressHUD.h).

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each MBProgressHUD release can be found in the CHANGELOG.

腰椎生理曲度变直是什么意思 cool什么意思中文 一个提手一个京念什么 午夜梦回是什么意思 苦荞是什么植物
今年男宝宝取什么名字好 狗的本命佛是什么佛 10月16是什么星座 牙根吸收是什么意思 鸡和什么属相相冲
气性大是什么意思 副研究员什么级别 血脂高吃什么药效果好 电解质氯高是什么原因 缺钙会导致什么
救人一命胜造七级浮屠是什么意思 查处是什么意思 大姨妈为什么会推迟 学富五车是什么意思 支气管扩张什么症状
重庆是什么地形hcv8jop8ns7r.cn 反射弧太长是什么意思wuhaiwuya.com 点痣后要注意什么travellingsim.com 知交是什么意思hcv8jop7ns3r.cn 什么颜色加什么颜色等于蓝色inbungee.com
什么东西在倒立之后会增加一半hcv8jop8ns3r.cn 小孩感冒吃什么饭菜比较好hcv9jop6ns4r.cn 阿胶适合什么人吃hcv8jop6ns5r.cn 最贵的金属是什么bfb118.com 熬夜流鼻血是什么原因hcv9jop4ns6r.cn
什么是配速hcv8jop0ns2r.cn 神经性耳鸣有什么症状hcv8jop8ns0r.cn 三伏贴是什么hcv9jop0ns9r.cn 一戴套就软是什么原因huizhijixie.com 坐北朝南什么意思hcv9jop2ns0r.cn
什么映雪hcv9jop1ns4r.cn 英短蓝猫吃什么猫粮好hcv7jop5ns2r.cn 军长是什么级别hcv9jop8ns1r.cn 丢是什么意思hcv8jop7ns3r.cn 肺部斑片状高密度影是什么意思hcv7jop9ns0r.cn
百度