uiappearance Questions
2
This might have been answered already but I can't seem to find the answer.
iOS 13 introduces the new UIBarButton.SystemItem value of .close.
I have played with the new proxy appearance APIs but n...
Vicissitude asked 7/11, 2019 at 20:24
4
Solved
I have a UITabBar set up with Interface Buider and the image highlighting works correctly only if I don't set the global app tint color:
When I set the global tint color of my app using
[[UIVi...
Alius asked 5/1, 2015 at 21:52
2
I am building a tvos app and i want the UITextView to behave similarly like in tvos Movies app. I am specially interested in the focused appearence. Please have a look ate these two pictures.
Cu...
Specialty asked 8/12, 2015 at 14:50
7
Solved
I am using google places API for autoComplete widget. I am showing the full screen control in ios 9+ using swift. I am adding a full control as given in the docs.
I have added the code as shown in...
Xena asked 11/6, 2016 at 11:18
1
Solved
The following, which sets the title text appearance proxy to use a big font, works as expected, and the UITabBarItems retain their big font when you select them:
func application(_ application: UI...
Magnolia asked 20/2, 2022 at 13:39
5
I tried to set the font of UIButton via appearance proxy. But it doesn't seem to work. This is what I tried.
UIButton.appearance().titleFont = UIFont(name: FONT_NAME_DEFAULT, size:20.0)
UIButton.a...
Vesting asked 25/4, 2015 at 7:8
3
Currently, I am changing the font of the navigation bar using the following in the AppDelegate:
[[UINavigationBar appearance] setTitleTextAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
...
Adaurd asked 30/12, 2014 at 22:11
3
Is there a way to highlight (i.e., toggle) a UIBarButtonItem without using a custom view?
For example, see 3D button from the Maps app:
or Shuffle All from the Music app:
Southwestward asked 6/1, 2014 at 23:39
4
The Apple documentation states:
To participate in the appearance proxy API, tag your appearance
property selectors in your header with UI_APPEARANCE_SELECTOR.
In Objective-C one can annotate ...
Cosgrove asked 2/10, 2014 at 22:17
10
I am using the following code in my appDelegate to set the appearance of my UINavigationBar and status bar throughout my app:
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UI...
Rhodium asked 14/1, 2014 at 1:40
2
iOS uses standard (blue) tint color for all colored texts in MFMailComposeViewController. This is not good for me, as customer wants his company colors in app. How to change their color to orange?
...
Vent asked 21/4, 2015 at 11:59
5
We have extended UILabel to be able to apply standard fonts and colors for all uses of a given label type in our apps. Eg.
@interface UILabelHeadingBold : UILabel
@end
In our AppDelegate, we ap...
Baalman asked 3/7, 2012 at 9:50
3
Solved
In my app I have a global custom font applied to all labels like so:
UIFont *font = [UIFont fontWithName:kMyFontName size:15.0];
[[UILabel appearance] setFont:font];
This works fine. However, i...
Gesticulation asked 30/7, 2014 at 4:9
4
Solved
I'm looking to theme my iOS app and have been reading up on UIAppearance. I want the user to be able to switch between a number of different visual themes from within the app. Changing a theme woul...
Fusion asked 12/6, 2013 at 16:24
11
Solved
I'm trying to convert my app to the Swift language.
I have this line of code:
[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil]
setTitleTextAttributes:textDictionary
for...
Cicely asked 10/6, 2014 at 9:1
1
I have tab bar controller with view controller that has only a table view in it.
I am setting navigation bar large title using code:
if (@available(iOS 11.0, *)) {
[[UINavigationBar appearance] ...
Frisket asked 15/11, 2017 at 8:0
1
In iOS 11 I'm currently changing the back button for my navigation controllers like this:
UINavigationBar.appearance().backIndicatorImage = whiteBackButtonImage!.withRenderingMode(.alwaysOriginal)...
Bouncing asked 11/10, 2017 at 15:19
6
I'm trying to change the text color for navigation buttons in a MFMailComposerViewController but it doesn't work like on iOS 6. In iOS 6 it worked with UIAppearance like this:
// Navigation button...
Exhaustive asked 12/10, 2013 at 11:48
4
Solved
I have been getting unreliable results while trying to apply UIAppearance proxy styles to the UILabel class proxy. For example, the following works as I would expect:
[[UILabel appearance] setFont...
Clite asked 7/8, 2012 at 3:58
4
Solved
I find UISegmentedControl change font and size like this :
UISegmentedControl.appearance().setTitleTextAttributes(myFontAttribute as [NSObject : AnyObject] , forState: .Normal)
but UILabel have n...
Thistle asked 31/3, 2016 at 3:45
1
After updating to Swift 4, I am getting a compiler error:
Static member 'appearance' cannot be used on protocol metatype 'UIAppearance.Protocol'
Here is my viewWillAppear method in my custom Tab...
Chelsea asked 17/7, 2017 at 17:40
7
I am using UIAppearance to apply fonts to UINavigationBar and UIBarButtonItem and I am having problems. I ran this code:
[[UIBarButtonItem appearanceWhenContainedIn:[UIToolbar class], nil]
setTit...
Eller asked 19/9, 2013 at 15:9
3
I am currently spinning a complex web of UIAppearance modifiers*, and have come across a problem.
My usage of FlatUIKit's custom UIBarButton appearance protocol is causing MFMailComposerViewContro...
Untouchable asked 16/10, 2013 at 16:19
3
Solved
I would like to create a separator line like this one:
Any idea about how to implement it?
I tried getting an image of the line and using UIAppearance proxy objects:
[[UITableView appearanceWhe...
Importunate asked 28/6, 2013 at 14:38
2
Solved
Is there a way how to set the default status bar style while keeping the UIViewControllerBasedStatusBarAppearance enabled?
Here is the problem, I'm dealing with:
Nearly the whole app needs to be ...
Mohammedanism asked 27/1, 2017 at 14:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.