Giter Site home page Giter Site logo

chenliangloveyou / easyshowview Goto Github PK

View Code? Open in Web Editor NEW
467.0 14.0 88.0 18.07 MB

一款非常简单的展示工具。提示框,加载框,空白页提示,alert弹出框。一行代码搞定所有操作。

License: MIT License

Objective-C 98.89% Ruby 1.11%
loding toast hud alert actionsheet show mbprogresshud emptyview

easyshowview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyshowview's Issues

在tabbar+nav的界面中,tabbar文字不显示

-(void)initTabBarController
{
// self.delegate = self;

UIViewController *homeVC = [[UIViewController alloc] init];
homeVC.title = @"测试1";
EasyNavigationController *homeNag = [self settingTabbarItemWithRootVC:homeVC img:@"tab_home_note" selectImg:@"tab_home_selected"];

UIViewController *discoveryVC = [[UIViewController alloc] init];
discoveryVC.title = @"测试2";
EasyNavigationController *workProNag = [self settingTabbarItemWithRootVC:discoveryVC img:@"tab_dynamic_note" selectImg:@"tab_dynamic_selected"];

UIViewController *orderVC = [[UIViewController alloc] init];
orderVC.title = @"测试3";
EasyNavigationController *processNag = [self settingTabbarItemWithRootVC:orderVC img:@"tab_chat_note" selectImg:@"tab_chat_selected"];

UIViewController *mineVC = [[UIViewController alloc] init];
mineVC.title = @"测试4";
EasyNavigationController *mineNav = [self settingTabbarItemWithRootVC:mineVC img:@"tab_mine_note" selectImg:@"tab_home_selected"];
//workProNag
self.viewControllers = @[homeNag,workProNag,processNag,mineNav];
self.selectedIndex = 0;

}

  • (EasyNavigationController *)settingTabbarItemWithRootVC:(id)VC img:(NSString *)imgStr selectImg:(NSString *)selectImg
    {
    EasyNavigationController *nag = [[EasyNavigationController alloc] initWithRootViewController:VC];
    [nag.tabBarItem setImage:[[UIImage imageNamed:imgStr] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [nag.tabBarItem setSelectedImage:[[UIImage imageNamed:selectImg] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [nag.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor blackColor] forKey:NSForegroundColorAttributeName] forState:UIControlStateNormal];
    [nag.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor blackColor] forKey:NSForegroundColorAttributeName] forState:UIControlStateSelected];
    return nag;
    }

WeChat0f25a02cce1ad96603639ba7696ba786

暗黑模式 bgColor

EasyTextConfig *config = [EasyTextConfig shared];
config.bgColor = [UIColor whiteColor];

appdelegate里面设置了bgColor. info.plist里面关闭暗黑模式.真机本身设置了暗黑模式.
bgView显示的是黑色的.

崩溃问题

================================JJException Start==================================
2021-03-03 15:30:24.867388+0800 MXProject[3955:601372] JJException Type:64
2021-03-03 15:30:24.867600+0800 MXProject[3955:601372] JJException Description:Need invalidate timer from target:EasyTextView method:timerAction
2021-03-03 15:30:24.867775+0800 MXProject[3955:601372] JJException Extra info:(null)
2021-03-03 15:30:24.868163+0800 MXProject[3955:601372] JJException CallStack:(
0 MXProject 0x00000001051cfd88 -[JJExceptionProxy handleCrashException:exceptionCategory:extraInfo:] + 144
1 MXProject 0x00000001051cf980 _Z20handleCrashException24JJExceptionGuardCategoryP8NSString + 116
2 MXProject 0x00000001051d7d34 -[TimerObject fireTimer] + 352
3 Foundation 0x000000019b74d430 __NSFireTimer + 64
4 CoreFoundation 0x000000019a3d73e0 F3021642-E3C0-33F8-9911-DD303A6056D0 + 635872
5 CoreFoundation 0x000000019a3d6fe4 F3021642-E3C0-33F8-9911-DD303A6056D0 + 634852
6 CoreFoundation 0x000000019a3d64c4 F3021642-E3C0-33F8-9911-DD303A6056D0 + 632004
7 CoreFoundation 0x000000019a3d0850 F3021642-E3C0-33F8-9911-DD303A6056D0 + 608336
8 CoreFoundation 0x000000019a3cfba0 CFRunLoopRunSpecific + 572
9 GraphicsServices 0x00000001b1138598 GSEventRunModal + 160
10 UIKitCore 0x000000019ccc12f4 CC6E5AC7-8248-35F6-8B42-2E25C93DCF0A + 11723508
11 UIKitCore 0x000000019ccc6874 UIApplicationMain + 164
12 MXProject 0x0000000104fdec30 main + 140
13 libdyld.dylib 0x000000019a0ae568 0B475C78-3C12-3121-B7F8-2B95B83DAF44 + 5480
)

hud会提前消失

loadingview偶尔会提前消失,然后这个时候网络请求还没成功。我用SVProgressHUD就一切正常,不知道作者有遇到没?

bug

跳转页面 不移除空白页,返回上级,通知未移除(对EasyEmptyView是否移除抱怀疑态度),空白页,顶端提示,和自定义alert横屏适配问题!!!很适用,👍

建议 解耦

三种样式的框 用不同的pod 子目录的形式进行

文字提示语弹窗显示问题

楼主你好,东西很nice,多谢🙏分享,不过在查看过程中发现了一点点小的问题:在纯文本提示语文字过多展示在状态栏和导航栏时,字体会偏右且顶到屏幕边缘,在带图片提示语文字过多时,展示在状态栏和导航栏时,边缘文字会被屏幕覆盖部分 测试在8p上

文字弹窗显示问题

您好!我手动集成您这个源码,发现。EasyShowTextView 这个弹窗又问题,当配置options.textSuperViewReceiveEvent = NO;时弹窗出现在屏幕左边且有一部分没有显示,看了一下代码,好想问题出现在 EasyShowTextView.m 文件271行代码 EasyShowTextView *showView = [[EasyShowTextView alloc] initWithFrame:CGRectZero];和342行代码
if (!self.options.textSuperViewReceiveEvent) {
showFrame.origin = CGPointMake((self.width-backGroundW)/2, showFrameY) ;
}这里有问题,self.width的数值为0,导致显示不正常。

需要帮助

你好,请问我想调用默认的左上角的返回按钮事件,但是调用setNavigationBackButtonCallback这个方法总是崩溃。希望能得到您的帮助。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.