mownier / monactivityindicatorview Goto Github PK
View Code? Open in Web Editor NEWMONActivityIndicatorView is an awesome custom activity indicator view for iOS.
License: MIT License
MONActivityIndicatorView is an awesome custom activity indicator view for iOS.
License: MIT License
Hey ,
When i was looking for a ActivityIdicatorView exemples, i found yours, and i wanted to test it, and i found out that i haven't MONActivityIndicatorView class !! is it NORMAL?
following is my configuration, but the indicator is not placed in center of view actually.
self.indicatorView = [[MONActivityIndicatorView alloc] init];
self.indicatorView.delegate = self;
self.indicatorView.center = self.view.center;
self.indicatorView.numberOfCircles = 7;
self.indicatorView.radius = 5;
self.indicatorView.internalSpacing = 3;
self.indicatorView.duration = 0.5;
self.indicatorView.delay = 0.5;
I can not control the position in my view, it's always in the left head .can you help me????
Please implement this method as follows and call invalidateIntrinsicContentSize
instead of adjustFrame
. This way it plays well together with iOS auto-layout.
-(CGSize)intrinsicContentSize
{
return CGSizeMake((self.numberOfCircles * ((2 * self.radius) + self.internalSpacing)) - self.internalSpacing, self.radius * 2);
}
The issue I'm having is that I can't center the view horizontally using layout constraints without knowing the exact width of the view. With intrinsicContentSize
implemented, it would layout automatically.
Hi~
Sometimes circles of indicatorView are not visible.
In order to find out to cause of this problem, I modified the code " [circle setTransform:CGAffineTransformMakeScale(0, 0)];" into " [circle setTransform:CGAffineTransformMakeScale(1, 1)]; in "- (void)addCircles" method.
As a result, circles are always visible but sometimes there is no animation.
I don't know why exactly this has happened.
Thank you for reading this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.