iphone x home indicator issue while using tableViewController [duplicate] - ios

This question already has answers here:
TableView and the home indicator on iPhone X
(3 answers)
Closed 5 years ago.
I have some doubts. I'm using a UITableViewController, and at bottom it's not giving space for the home indicator. It goes behind the home indicator (refer to the image). If I add any button actions to the last cell, this will surely cause an error.

Refer this to add programmatically... https://developer.apple.com/documentation/uikit/uiview/positioning_content_relative_to_the_safe_area

Use Safe area layout constraints. See the attachment bellow.Your problem will be solved.

Related

How do I get rid of this extra padding above each section in my table view that appeared in iOS 15? [duplicate]

This question already has answers here:
Extra padding above table view headers in iOS 15
(9 answers)
Closed 1 year ago.
I'm currently going through my app in the iOS 15 Beta to make sure all of the UI is looking good and I found that on one of my table views, there are now thick white lines above each section that were not present prior to iOS 15. As a result, not all of the sections fit on the table view (and, of course, it's also an eyesore). Has anyone else encountered this when checking out iOS 15? If so, have you found a fix for this issue?
Ok, I figured it out. It's a one-line fix:
self.tableView.sectionHeaderTopPadding = 0.0f;

Adding dynamically current year in a Label in LaunchScreen.xib in iOS [duplicate]

This question already has an answer here:
iOS: Update launch screen dynamically
(1 answer)
Closed 4 years ago.
Is it possible to add the current year dynamically to a Label to show "Copyright current year" in the LaunchScreen.xib in iOS using Objective C? If yes, could you please write the steps needed?
From my knowledge, I think the LaunchScreen is only to display static contents but after going through few articles they said it can be done but I didn't get a clear answer. I know this is a duplicate question in StackOverflow but still hoping to get some help. Thanks!
You can't display any dynamic content inside the launch screen , but you can create a splashVC as the rootVC that you add to it what you want and by setting a timer/ dispatch / delay inside that splash to navigate to the mainVC of the app

Replace Launch screen text on each app login [duplicate]

This question already has answers here:
Execute code in Launch Screen
(4 answers)
Closed 4 years ago.
I want to change the text of a label in the LaunchScreen.storyboard on each application launch. The problem is that when I am trying to set a UIViewController to the LaunchScreen.storyboard I get this error:
"Launch screens may not set custom classnames".
My goal is to show the user hidden features of the app while he waits for it to load (every time a different one).
You can't assign custom VC to that launch (only static images or text dragged from Object Library ) , if you want to make splash make it in the rootVC then navigate to the mainVC

Drag UIKeyboard to hide [duplicate]

This question already has answers here:
iMessage Style Receding Keyboard in an iOS App
(3 answers)
Closed 8 years ago.
I wonder how to prepare similar functionality to Skype app, which allow user down drag UITableVIew to hide in live mode UIKeyboard.
Do you have any suggestions to resolve this issue, or maybe have used before of some cocopods?
As of iOS 7, this functionality has been built into the UIScrollView class
Choose whichever of these fits your needs best.
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive;
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;
If however you want to achieve this in an older iOS version, you can't do anything interactive, but you can use the UIScrollViewDelegate method scrollViewWillBeginDragging: to dismiss the keyboard when the user starts scrolling.

iOS 5 UIAlertView customisation [duplicate]

This question already has answers here:
Alert view is showing white rectangle in iOS7
(3 answers)
Closed 9 years ago.
I am adding UIButton to UIAlertView as below
it is fine with iOS 6 and below now in iOS 7 it comes like this
Please let us know the way to resolve this issue.
You can't add any view as a sub view in alert view as per the IOS 7 standard. please refer apple document. (UIAlert view customization not possible in IOS 7)
Please refer:
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UIAlertView.html#//apple_ref/doc/uid/TP40012857-UIAlertView-SW1
You can find the answer on this link
But this is wrong approach , you can see this on same link
Alertview should only use to show below details
Be immediately informed of critical information
Make a decision about a course of action
For above task you should use pickerview or tableview depends on the requirement.

Resources