Comments (9)
Could you provide me a demo app?
from iqkeyboardmanager.
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.
It's not a bug, It's the default nature of UITableView.
from iqkeyboardmanager.
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.
But it breaks the default rule of UITableView, and it would a bad thing for such universal libraries.
from iqkeyboardmanager.
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.
Yes.
from iqkeyboardmanager.
Well it is under under the section view when writing to it :) it's still your call though ;)
from iqkeyboardmanager.
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)
- It'd be good to give access to keyboard tool bar through singleton instance HOT 4
- Aviator predictor for email and password sand me
- IQPlaceholderable.swift doest not compile. HOT 5
- [[IQKeyboardManager shared] setEnable:FALSE] Crashes the application on latest version HOT 2
- Compile issue xcode 15 HOT 1
- Xcode 15: Carthage build task fail with exit code 65 HOT 2
- `UIScreen.main` will be deprecated in a future version of iOS
- "unrecognized selector sent to instance" Crash when focusing a text field HOT 10
- xcode升级到15后,使用IQkeyboard控制键盘导致将整个背景都向上弹起了,之前是弹起的对应view,可以帮忙看下是为什么吗 HOT 2
- Bug: When use UISheetPresentationController, UI components raised more that i expected HOT 6
- IQKeyboardManagerSwift is not working with Search bar or UISearchBarController HOT 1
- When use a UITextField on a UITableview of type Group, the SectionHeader flashes HOT 3
- 聊天界面键盘弹起的时候会导致导航栏移出屏幕 HOT 1
- disabledToolbarClasses for swiftui view HOT 2
- set the extension property of textView to disable will cause the keyboard display of other objects to be abnormal HOT 5
- Bug: When use UISheetPresentationController, I touch the text field to activate the keyboard, which causes UI problems HOT 3
- In SwiftUI, the toolbar only appears after the keyboard pops up HOT 1
- SwiftUI Keyboard is blocking the bottom of the view in popup HOT 3
- Multiple commands produce PrivacyInfo.xcprivacy file error in static framework case HOT 4
- Hi I hav the app how à share it with you?
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 iqkeyboardmanager.