Giter Club home page Giter Club logo

ffpopup's Introduction

Hi there 👋

I'm Jony, an iOS software enginner & design-lover. Here are some facts about me.

  • 💼 I'm currently working at @Bilibili, and a side project called Time
  • 💬 Ask me about iOS development
  • 📫 How to reach me: [email protected]
  • 🌟 Pronouns: he/him

JonyFang's github stats

ffpopup's People

Contributors

0xflotus avatar dependabot[bot] avatar jonyfang avatar kornerr avatar

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

ffpopup's Issues

it's not show

  • (void)menuAction{

    FFPopup *popup = [FFPopup popupWithContentView:self.contentView];
    popup.showType = FFPopupShowType_None;
    popup.dismissType = FFPopupDismissType_None;
    popup.maskType = FFPopupMaskType_None;
    popup.shouldDismissOnBackgroundTouch = YES;
    popup.shouldDismissOnContentTouch = YES;
    FFPopupLayout layout = FFPopupLayoutMake(FFPopupHorizontalLayout_Center, FFPopupVerticalLayout_Center);
    popup.backgroundColor = [UIColor blueColor];
    [popup showWithLayout:layout ];
    }

  • (BLCustomContentView *)contentView {
    if (!_contentView) {
    CGFloat scale = 375.0 / SCREEN_WIDTH;
    CGFloat width = 320.0 * scale;
    CGFloat height = 360.0 * scale;
    _contentView = [[BLCustomContentView alloc] initWithFrame:CGRectMake(0, 0, width, height)];
    _contentView.backgroundColor = [UIColor redColor];
    [_contentView updateTitle:@"👋\nHurray!" desc:@"Your request has been sent successfully. We will email you shortly. Meantime, check our marketing tips on Twitter and Facebook." buttonTitle:@"Got it"];
    _contentView.delegate = self;
    }
    return _contentView;
    }

it is not show ,i don't know ,

传入的contentView使用xib layout 布局时内容撑不开(例:多行UILabel不会自动撑开,需要设置准确的contentView高度才可以)这种情况怎么设置

New Issue Checklist

Issue Info

Info Value
Platform Name e.g. ios
Platform Version e.g. 11.0 / 12.1.2
FFPopup Version e.g. 1.0.0
Integration Method e.g. carthage / cocoapods / manually
Xcode Version e.g. Xcode 10.1
Repro rate e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj e.g. does it happen with our demo project?
Demo project link e.g. link to a demo project that highlights the issue

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

视图出现后动态改变位置,backgroundView点击失效

- (UIView *)backgroundView {
    if (!_backgroundView) {
        _backgroundView = [UIView new];
        _backgroundView.backgroundColor = UIColor.clearColor;
        _backgroundView.userInteractionEnabled = YES;
        _backgroundView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        _backgroundView.frame = self.bounds;
    }
    return _backgroundView;
}
修改为:
 _backgroundView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);

给子视图设置大小,尽量不要用self.bounds

custom position support

I found layout has enum value of custom, but cannot find the example or doc about how to use it

showAtCenterPoint not useful

UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 200, 500, 500)];
view.backgroundColor = [UIColor redColor];
[self.view addSubview:view];

UIView *v = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 20, 30)];
v.backgroundColor = [UIColor blackColor];

FFPopup *pop =  [FFPopup popupWithContentView:v];
[pop showAtCenterPoint:CGPointMake(100, 20) inView:view];

When used this way, a black view will not appear correctly on red

Popup ShouldDismissOnContentTouch = false not working

New Issue Checklist

Issue Info

Info Value
Platform Name e.g. ios
Platform Version e.g. 11.0 / 12.1.2
FFPopup Version e.g. 1.0.0
Integration Method e.g. carthage / cocoapods / manually
Xcode Version e.g. Xcode 10.1
Repro rate e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj e.g. does it happen with our demo project?
Demo project link e.g. link to a demo project that highlights the issue

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

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.