I'm have used Toast before in Android. Is there a way to customize the font or font size of Toast on an UIView in iOS?
I am aware of the makeToast function, which seems to only have optional parameters for duration, position, image, and title. Or is there another messaging/notification system I should be using instead?
I already found this answer for Android.
Turns out toast is not native to obj-C like I originally thought? Growl/toast style notifications library for iOS
It looks like the github project was already included in some of the legacy code I've been going through... but adding such custom features would not be an iOS issue like I thought, it'd be working on the github project.
Also, turns out that there's a native iOS library message system: UIAlertView
There is no Toast-like in iOS, but you can use something similar called popover.
Popovers are from the documentations:
is used to manage the presentation of content in a popover. You use
popovers to present information temporarily. The popover content is
layered on top of your existing content and the background is dimmed
automatically. The popover remains visible until the user taps outside
of the popover window or you explicitly dismiss it. Popover
controllers are for use exclusively on iPad devices. Attempting to
create one on other devices results in an exception. However popovers
only available in iPads.
I would recommend the following control for you to use on iPhone and iPad, very easy to use and implement.
https://github.com/50pixels/FPPopover
Related
I have members complaining that they are unable to tap certain buttons located in a custom navigation bar at the top of my iOS app. The common complaint is that when they do attempt to tap, they see UI that looks like this:
This is about a 200x200 pixel square that appears over the middle of the screen.
We have no code in our app that is capable of drawing that kind of UI. I can only assume this is being triggered by some kind of iOS UI or Usability setting. The only thing I can think of is that we also have a UITabBarController, and the user (in this case) happens to be on the "Browse" tab of my app. If possible, I would like to either a) programmatically disable this or b) inform the user how he can manually disable this UI via an iOS setting someplace.
Can anyone identify what might trigger the UI you see above?
It is a new feature of iOS 11. Take a look at Bar Item Images.
To disable this you should remove an image from Accessibility on Bar Item (see link). But I am not sure how (or even whether) you can define that a user has enabled large content text.
For more info take a look at What's New in Accessibility.
Is there a way to programmatically make your app's custom browser the default one instead of Safari in iOS? I remember having seen one project that seemed to do something similar but unable to recollect which one it was? If it was possible, will Apple approve such apps or reject them?
Thanks,
Paddy
Thanks for ask question
Please do refer this link.
Might be it will help you.
You can use as follow.
1) Install library manually or using pods.
2) Do use as follow.
UINavigationController *webBrowserNavigationController = [KINWebBrowserViewController navigationControllerWithWebBrowser];
[self presentViewController:webBrowserNavigationController animated:YES completion:nil];
KINWebBrowserViewController *webBrowser = [webBrowserNavigationController rootWebBrowser];
[webBrowser loadURLString:#"http://www.example.com"];
Advantage of this library:
Features
iOS 7 & 8 support for iPhone and iPad devices
Safari-like interface
Animated progress bar
Customizable UI including tint color
Portrait and landscape orientation support
Use with existing UINavigationController or present modally
Delegate protocol for status callbacks
Action button to allow users to copy URL, share, or open in Safari & Google Chrome
UPDATE:
Sorry for the huge misunderstanding between us.
I am sorry to say that is not Possible to make custom browser default in iOS instead of Safari?
I've started developing for tvOS recently, and discovered that while TVML isn't ideal for our use case, we'd still like to display a number of screens that display the same types of content as I've seen in existing Apple apps, and which I know can be created with TVML.
As an example, I want to display a page of terms, the same way that the Apple TV displays information as a scrollable page of text.
I could do this custom, where I place my own textView on a UIViewController, and setup the width and positioning myself. But it's scenarios like this, where I'm wondering if there's some already existing standard control for it, such as a UIViewController subclass already setup for displaying Terms? Is there a set of these I could be looking at?
UIAlertController should solve what you're looking for. You configure the text, buttons, and then present it.
More info in the docs:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/
I'm trying to reproduce a similar view like the one Siri uses, specifically when she's showing some content, which looks like a "blurry-ier" content over an already blurry view.
Something like this, here you can clearly see the difference between the background and the content (like in the wiki/twitter view) that Siri is showing
I need this solution to be compatible with iOS 7 and I know iOS 8 allows to blur stuff easily but can't use that solution.
I already have the UIView with a blurry background, but I don't know how to highlight the content like Siri does so it's easier for the user to see what is part of the table and what is not.
My app is in landscape and uses a UINavigationController as its RootViewController. My goal with it is:
Disable the normal iOS StatusBar ( I know how to do that and already did it )
Have a semi-transparent StatusBar (a view) above the UINavigationBar, so that I can show custom information on it
Parts of the content of my main view must be visible underneath my custom StatusBar (exactly like it works with the normal UIStatusBar, just that I don't want the clock and battery and want to show my own information on it)
How can I best achieve this?
A quick search on GitHub gave me multiple libraries that offer the exact functionality you are looking for.
MTStatusBarOverlay
KGStatusBar
CWStatusBarNotification
FDStatusBarNotifierView
BWStatusBarOverlay
WTStatusBar
TWStatus
Try them out, test them and see which one is best for you.
If none of them are good enough, you should get an idea on how to achieve this functionality using the source code those libraries provide.
iOS 7 Human Interface Design, page 143 says:
Don’t create a custom status bar. Users depend on the consistency of
the system-provided status bar. Although you might hide the status bar
in your app, it’s not appropriate to create custom UI that takes its
place.
iOS Human Interface Guidelines