Comments (5)
i have to stop the app in xcode then rerun it to get the app unfrozen
from lgalertview.
Same error ! My app is freeze sometime by using LGAlertView !
Please fix this
from lgalertview.
I tried this and it seems ok !
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void){
//Background Thread
dispatch_async(dispatch_get_main_queue(), ^(void){
//Run UI Updates
});
});
from lgalertview.
thanks ill try it out!
Farhan Syed
Founder of BrandSpace
On Sun, Jun 26, 2016 at 9:25 PM, savvycodehelper [email protected]
wrote:
I tried this and it seems ok !
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT,
0), ^(void){
//Background Thread
dispatch_async(dispatch_get_main_queue(), ^(void){
//Run UI Updates
});
});—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AJI095L39ckjRm19Pkf_sQ7hdyjbaSplks5qP1DUgaJpZM4HaTvP
.
from lgalertview.
You need to use main thread to update UI.
If you use callbacks like actionHandler
you need to create weak reference to self
and use it instead self
__weak typeof(self) wself = self;
[[LGAlertView alloc] initWithTitle:@"Title"
message:@"Message"
style:LGAlertViewStyleAlert
buttonTitles:nil
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
actionHandler:^(LGAlertView *alertView, NSString *title, NSUInteger index) {
__strong typeof(wself) sself = wself;
[sself someMethod];
sself.someProperty = someValue;
}
cancelHandler:nil
destructiveHandler:nil];
Looks like bugs in your code.
from lgalertview.
Related Issues (20)
- Hotspot status bar UI Bug
- Why not push latest code to CocoaPods?!
- CocoaPod 版本不是最新代码,actionsheet 选项显示不完全 HOT 4
- LGAlertView line-771 HOT 1
- Alert Size broken on iPad until first rotation occurred
- 唤起遮罩背景是黑色的隐藏后屏幕全是黑的 HOT 1
- Xcode 11 and iOS 13 HOT 1
- Destruction handler fires before view has been removed from superview???
- _UIAlertControllerShimPresenterWindow make window can't interact
- Alert theme is not working as expected if we compile using xcode 12
- LGAlertView.m -line 779 HOT 4
- Xcode 12 报错如下 HOT 1
- strange bug with actionsheet height HOT 1
- crash [LGAlertViewHelper appWindow]
- swift
- LGAlertView do not show HOT 2
- 不想要 title 和 message 当 置 nil 或者 @"" 时 不显示这个行
- UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cancelAction:)]; tapGesture.delegate = self; // [self.backgroundView addGestureRecognizer:tapGesture];
- Xcode 14.3 出现错误 HOT 10
- Crash on windowVisibleChanged HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgalertview.