Comments (17)
I am experiencing this issue as well. It seems like if a modal is presenting authorization does not work
from weibo_ios_sdk.
我也遇到了从a present 到b,在b 调用授权接口,也是出现这个错误
from weibo_ios_sdk.
Same issue here. Version 2.5.1 works fine. The fix will look like this:
UIViewController * topViewController = window.rootViewController;
while (topViewController.presentingViewController)
topViewController = topViewController.presentingViewController;
from weibo_ios_sdk.
3.0.1版本里还有这个问题,能否赶紧解决这个问题,等着release。
from weibo_ios_sdk.
谢谢反馈,这个问题会在3.1.0版本中修复。3.1.0版本应该在3月份上旬前后发布。
from weibo_ios_sdk.
3.1.0何时发啊。我们也碰到同样的问题了。等着发布呢。谢谢。
from weibo_ios_sdk.
Any update on when this will be fixed?
from weibo_ios_sdk.
Have you guys forget to release new version in early march?
from weibo_ios_sdk.
Would love to see a fix for this since currently I am using method swizzling to fix the issue myself
from weibo_ios_sdk.
@joshuafeldman Which function name did you swizzling on?
from weibo_ios_sdk.
I made a category on UIViewController
and swizzled the presentation method. My code is below although some of the methods are categories I have made on other classes but you get the idea. It isn't my favorite solution and hopefully it will be fixed so I can remove it.
@implementation UIViewController (FGSinaWeiboPresenterFix)
#pragma mark - NSObject Class Methods
+ (void)load
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
/* strongify:ignore */
[self swizzleInstanceMethod:@selector(presentViewController:animated:completion:)
toMethod:@selector(_weibo_fix_presentViewController:animated:completion:)];
});
}
#pragma mark - Private Methods
- (void)_weibo_fix_presentViewController:(UIViewController *)viewControllerToPresent
animated:(BOOL)flag
completion:(void (^)(void))completion
{
// determine if the class name prefix is for the weibo SDK and be safe to make sure the length
NSString * weiboSDKPrefix = @"WBSDK";
NSString * className = [self classNameFromViewControllerToPresent:viewControllerToPresent];
if ( className.length >= weiboSDKPrefix.length ) {
NSString * prefix = [[className substringWithRange:NSMakeRange(0, weiboSDKPrefix.length)] uppercaseString];
if ( [prefix isEqualToString:weiboSDKPrefix] ) {
[[UIViewController topViewController] _weibo_fix_presentViewController:viewControllerToPresent
animated:flag
completion:completion];
return;
}
}
// call the original method
[self _weibo_fix_presentViewController:viewControllerToPresent animated:flag completion:completion];
}
- (NSString *)classNameFromViewControllerToPresent:(UIViewController *)viewController
{
if ( [viewController isKindOfClass:[UINavigationController class]] ) {
return [self classNameFromViewControllerToPresent:((UINavigationController *)viewController).topViewController];
}
return NSStringFromClass([viewController class]);
}
from weibo_ios_sdk.
Most appreciate @joshuafeldman
from weibo_ios_sdk.
still not updated?
from weibo_ios_sdk.
微博果然还是黄了,作为一个前微博员工,对这个更新速度和效率,感到一点也不意外。。。
自己动手,丰衣足食。
from weibo_ios_sdk.
same with @joshuafeldman .
Presented to a, then use sdk to request token but failed.
from weibo_ios_sdk.
@sinaweibosdk This issue should close.
from weibo_ios_sdk.
作为一个前微博员工,感到丢脸,为什么这个bug到现在都还没有修复,我去...
from weibo_ios_sdk.
Related Issues (20)
- Weibo_SDK.podspec 的 source_files 填写有误!
- ios 3.3.5 报错 Showing All Messages Undefined symbol: _OBJC_CLASS_$_WeiboSDK HOT 5
- iPad网页授权提示“用户名或密码错误”
- iPad网页授权扫码登录后直接在网页上打开了后台配的回调地址
- 升级到3.3.3以上的版本在iOS14以下新浪微博12以下的版本登录授权后回到app不会走didReceiveWeiboResponse回调 HOT 8
- 3.3.3版本采集了哪些信息
- iPad无法进行应用内网页登录。("用户名或密码错误") HOT 1
- 最新版的SDK还依赖WeiboSDK.bundle吗 HOT 1
- APP首次安装未同意隐私协议之前微博SDK进下读写SD卡操作 HOT 1
- 超话分享提示系统繁忙200404
- 编译警告
- 工程里面有UISceneDelegate,微博授权返回不回调响应方法
- iPad上使用QR码登录时,会在OAuth 2.0界面上停止。
- v3.3.4, xcode15 登录授权接收不到回调
- 3.3.6版本更新后初始化崩溃 HOT 1
- 在Swift框架中添加微博iOS SDK会触发“Include of non-modular header inside framework module”错误。
- 请求SDK支持xcframework产物 HOT 1
- Support App Privacy Manifest
- place/users/photos
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.