Giter Club home page Giter Club logo

Comments (9)

hackiftekhar avatar hackiftekhar commented on May 18, 2024

Could you provide me a demo app?

from iqkeyboardmanager.

osrl avatar osrl commented on May 18, 2024

Just paste these lines to the 'ScrollViewController' and switch bottom left scrollView and tableView in the main stroyboard



- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    NSString *headerText = @"title";

    UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [UIScreen mainScreen].bounds.size.width, 40)];
    headerView.backgroundColor = [UIColor colorWithWhite:0.953 alpha:1.000];

    UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectInset(headerView.bounds, 12.0f, 5.0f)];
    textLabel.text = headerText;
    textLabel.font = [UIFont fontWithName:@"Helvetica" size:([UIFont systemFontSize] + 1.0f)];
    textLabel.textColor = [UIColor redColor];
    textLabel.backgroundColor = [UIColor clearColor];
    textLabel.textAlignment = NSTextAlignmentCenter;
    [headerView addSubview:textLabel];

    UIView *bottomLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, headerView.bounds.size.height, [UIScreen mainScreen].bounds.size.width, 1.0f)];
    bottomLine.backgroundColor = [UIColor colorWithWhite:0.890 alpha:1.000];
    [headerView addSubview:bottomLine];
    return headerView;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 40;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    // Return the number of sections.
    return 1;
}

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on May 18, 2024

It's not a bug, It's the default nature of UITableView.

from iqkeyboardmanager.

osrl avatar osrl commented on May 18, 2024

Of course it's nature of UITableView, but i think table view should move up as section height so text field is visible, not under the section

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on May 18, 2024

But it breaks the default rule of UITableView, and it would a bad thing for such universal libraries.

from iqkeyboardmanager.

osrl avatar osrl commented on May 18, 2024

I think you get me wrong :) of course it should behave like that when
scrolling. But when writing to the uitextfield it should be visible, not
under the section am I right?
18 Nis 2014 17:59 tarihinde "Mohd Iftekhar Qurashi" <
[email protected]> yazdı:

But it breaks the default rule of UITableView, and it would a bad thing
for such universal libraries.


Reply to this email directly or view it on GitHub.

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on May 18, 2024

Yes.

from iqkeyboardmanager.

osrl avatar osrl commented on May 18, 2024

Well it is under under the section view when writing to it :) it's still your call though ;)

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on May 18, 2024

Please suggest me how should I proceed technically?

On Mon, Apr 21, 2014 at 12:44 AM, Osman Saral [email protected]:

Well it is under under the section view when writing to it :) it's still
your call though ;)


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-40902407
.

from iqkeyboardmanager.

Related Issues (20)

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.