Accessing and Enable/disable UIViewalert Button in ios 7 and earlier - ios

I am stuck on Accessing uialertview buttons in ios 7 . when googling i read ios 7 did not allow to customize or chenging the uialert view button .
I want to do these functionality in my project my deployment target is 5.0-
->I want to disable AlertView first button disable for 15 second with its title like this
OK(15),OK(14)......OK(0),OK(with user enable). After completion 15 seconds user can tap to the ok button to dismiss the alert view .
please suggest me how to do this.
Can i get the ok (fist button) of alert view and can change its title as i write above .
Or
i have to use custom alert view .
I want to show the default looking UIAlert which match with IOS 7 and earlier version Ui
Thanks .

Related

How to show "Back" option in IOS devices for InappBrowsers in Ionic 5?

I am using InAppBrowser Plugin in my Ionic 5 project . My expectation is to have a back button visible in InappBrowser in order to return to original app (which is usually present in Ios) , but as per my current implementation the Back option is not visible in ios device.
below is the code I am using -
this.inAppBrowser.create(url, '_blank', { location: 'no', hardwareback: 'yes', fullscreen: 'no' });
In iOS there is no "back" button but "Done" button (which is the same, takes you back to the app). It should already display, you can't disable it, so you should see a blue "Done" button.
If location is false, the Done button does not appear. Then you need to set the option "footer" to true, to display the Done button at the bottom.
With the options closebuttoncolor and closebuttoncaption you can change the text and the color, so change the text to "Back".

SDCAlertView not dismissing text field keyboards in iOS 11

"Manual" alerts work fine with text fields and dismiss keyboards when an action is clicked.
With SDCAlertView the text fields are not dismissed.
Have not updated to Swift 4. Kept everything as is. Only running on iOS 11.
Eg. from the demo project: http://file.5ep4r0.com/fAMsWuV.mp4
Thanks

iOS 8.3: UIActivityViewController shows extraneous row

I have a UIActivityViewController for which I have excluded (using excludedActivityTypes) all the UIActivityCategoryAction activity types.
In iOS 8.2, the UIActivityViewController would only show one line, for the UIActivityCategoryShare activity types.
In iOS 8.3, I get an empty line for UIActivityCategoryAction. See the screenshot below where the second line just has "More".
How can I remove the UIActivityCategoryAction in a UIActivityViewController in iOS 8.3?
In iOS 8, UIActivityViewController is still an API that only provides custom functions, but not custom UI. You can't change the way it looks. The only part of the visual style you can change is the icon of your custom UIActivity subclasses. (ref)
This is how Apple implements this, and it cannot be changed as of 8.3. If you really want to avoid the extra row and the "More" button, you can implement a UIActivityViewController replacement. Here are a couple that have been recently maintained:
OvershareKit
URBNShareKit
References:
UIActivityViewController Hide More from Actions
UIActivityViewController on iOS 8 show "more" button with custom activities
Can I exclude "More" Button in UIActivityViewController?
http://getnotebox.com/developer/uiactivityviewcontroller-ios-8/
This is by-design so that users can add back system and third-party actions that they've hidden.
The More is system default. that is used to reordering the application. and for extension(introduce in IOS 8), More button is used to reorder the app as well add application in dialogue. we don't have any control over it.
Hope this help you.
I find a away to remove the UIActivityCategoryAction .
Like that:
demo
As the UIActivityCategoryAction is the second section of a CollectionView ,
You can find collectionView's dataSource and change the implement of the "numberOfSectionsInCollectionView:" by method swizzling.
here is the demo:enter link description here
UIActivityCategoryAction is the second section of a UIColletionView , change the number of section equal to 1 ,and the UIActivityCategoryAction will disappear.
Here is the demo

iOS 8 modify "asset Remove Alert" with Xcode

In iOS 8 you're allowed to easily delete assets from Camera Roll.
I already use this function in my App but I wan't to change the text of the alert, which is visible.
Image:
Now I want to change the title of the alert.
Did everybody know, what I have to do that i can change the title of the alert?
I use Objective-C in Xcode.

UIActionSheet buttons lack visual feedback in iOS 8

I am seeing a small (but really annoying) difference between iOS 7 and 8 concerning UIActionSheet. In iOS 7, the button that the user taps in the action sheet is selected immediately, giving prompt visual feedback of which button was pressed. (By "selected" I mean the background color of the button changes.) However, in iOS 8 the button does not visually appear selected unless the user taps and holds an action sheet button. Since a normal tap is typically very brief (and not held), this has the effect of the button usually never looking selected in an iOS 8 action sheet.
What the user sees after tapping Option 2 in iOS 8: no selected button as the dialog does its close animation.
If the user taps and holds Option 2, the button finally appears selected. This is also what the user would see immediately after tapping in iOS 7.
UIActionSheet usage:
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:#"Option 1...", #"Option 2", #"Option 3", #"Option 4",
nil];
[actionSheet showFromBarButtonItem: myView.optionsButton animated: YES];
Please note that the action sheet otherwise functions as expected. The appropriate action call is made, etc. The issue is only the lack of visual feedback of the button press.
I know that UIActionSheet is deprecated in iOS 8, however, I have tried using UIAlertController with the same results. This seems to be an OS-wide user interface decision.
In iOS 7, there is immediate visual feedback when tapping an option in an action sheet. Is there anyway to get this behavior back in iOS 8?
Edit: The action sheet button in Mail in iOS 8 demonstrates the behavior. This is the Reply/Forward/Print button. Tapping an option does not give visual feedback, but tapping and holding the option does.

Resources