hope Give more detail how to use it
Closed this issue · 2 comments
oflyme12 commented
I am sorry, I donot know how to use your project . Can you tell more detail about it ?? If you can , I think you project will have more starts. Thanks.
oflyme12 commented
no usage is so bad!
Dev- commented
Yeah - updating the ReadMe to illustrate an easy example of the functionality contained is standard for most Readme's on GitHub. Admittedly the documentation is pretty good otherwise but the example code is suited for a slightly more thorough examination of the code rather than compile and play.
Anyway for other users wishing to Ctrl+V a few lines of code to get something on the screen, I did mine in Swift but maybe someone else can write an equivalent in Objective-C:
`
import M13ProgressSuite
...
override func viewDidAppear(animated: Bool)
{
showHUD()
}
func showHUD()
{
let progressView = M13ProgressViewSegmentedBar.init(frame: CGRectMake(0, 0, 100, 50))
progressView.indeterminate = true
self.view.addSubview(progressView)
let HUD = M13ProgressHUD(progressView: progressView)
HUD.progressViewSize = CGSizeMake(60.0, 60.0)
HUD.animationPoint = CGPointMake(UIScreen.mainScreen().bounds.size.width / 2, UIScreen.mainScreen().bounds.size.height / 2)
let window: UIWindow! = (UIApplication.sharedApplication().delegate as! AppDelegate).window
window.addSubview(HUD)
HUD.show(true)
}
`