项目作者: hdogan

项目描述 :
iOS progress hud module for Appcelerator Titanium.
高级语言: Objective-C
项目地址: git://github.com/hdogan/titanium-progress-hud-module.git
创建时间: 2012-05-18T15:53:51Z
项目社区:https://github.com/hdogan/titanium-progress-hud-module

开源协议:Other

下载


Appcelerator Titanium Progress HUD Module for iOS

This is a Progress HUD module (MBProgressHUD Titanium binding) for iOS development by Hidayet Dogan.
MBProgressHUD class has been used. Thanks Matej Bukovinski for his work.

Requirements:

Minimum Titanium SDK version is 3.5.0.GA

Installation from Source:

  1. Run build.py which creates module distribution zip file.
  2. Copy or unzip the zip file into your Titanium SDK folder.

Installation from Distribution:

Use gitTio with gittio install do.hi.progress.hud command or download zip file from repository and extract it in SDK or in your project directory.

Registering Module:

Edit your project tiapp.xml file and include:

  1. <modules>
  2. <module version="0.2" platform="iphone">do.hi.progress.hud</module>
  3. </modules>

or use TiApp Editor on Titanium Studio to add module.

Basic Usage:

  1. // Fullscreen Example
  2. ProgressHUD = require('do.hi.progress.hud');
  3. var HUD = ProgressHud.createProgressHud({
  4. text: 'Loading...',
  5. fullscreen: true
  6. });
  7. HUD.setGradientBackground(true);
  8. // Fired when Progress HUD has been completely hidden.
  9. HUD.addEventListener('hidden', function(e) {
  10. alert('Progress HUD has been vanished!');
  11. });
  12. // You don't need to attach HUD to window or view. Just show it.
  13. HUD.show({
  14. animated: true
  15. });
  16. HUD.hide({
  17. animated: true,
  18. after: 5
  19. });
  20. // Progress HUD attached to view
  21. ProgressHud = require('do.hi.progress.hud');
  22. var win = Ti.UI.createWindow();
  23. var HUD = ProgressHud.createProgressHud({
  24. text: 'Loading...'
  25. detailsText: 'Loading assets.'
  26. });
  27. win.add(HUD);
  28. HUD.show({
  29. animated: true,
  30. type: 'zoom'
  31. });

TODO:

  • text and detailsText color
  • Documentation
  • Examples

License:

GNU General Public License, Version 3.0

Copyright (c) 2012-2015 by Hidayet Dogan. All rights reserved.