Set OSX status bar app image colour - objective-c

I have a frustrating problem. Ive created a StatusBar (MenuBar) app and attached a logo to it. Problem is no matter what colour the image I use for my logo is, it always turns out grey scaled in the statusBar. Drop box has a blue and green icon so I know its possible just don't know how. The image im using is a PNG btw

Okay, I figured this out. Incase anyone stumbles upon this and needs an answer. What had happened was, I had set setTemplate to YES on my highlight image. I had seen this in a tutorial I followed to learn how to make a statusMenu app in the first place. Removing this line fixed everything

Related

TextFields disappeared in iOS 14.0.1

I got some very weird issue with some user of iOS 14.0.1
First he reported that the username and password fields of Login page have disappeared.
I thought how this can happened? app was even published in App Store, so I asked for a screenshot and he sent me this:
Previously I thought fields have really disappeared, but after checking code, storyboard, etc... and finding no clue, I checked the screenshot again minutely and I noticed that inputs are there but with color almost same as the background. I also noticed that the background of other inputs has changed the color to some grey (looking like disabled fields). The background of TextFields are set as "Default".In order to fix it in iOS 14, I'm having to set background in all of them as White and incase I disable anyone of them, I need to set color again as Grey (and previously all these were not needed). Does anybody is facing same?
Finally I got the problem so I'm posting the answer in case can help anybody.
The problem was that I was using System's Color and these types of colors can changed (drastically like from white to black) according to the iOS selected mode (Light or Dark).
My suggestion is avoiding System's colors as long as you want fixed colors.
And in case your device is out of date and has no Light/Dark mode, check here how to switch between the modes in simulator.

Text field problems Xcode

I’m creating an app and need to make a signup/login page. I added a background using a picture and a zstack and on top I have the text and text fields. The text fields are showing up but not allowing me to add padding as well as there is no title text showing. Please help.my code
Did some more testing to find out that this happens whenever I use a textfield over an image. Not sure if this is a bug or not but it seems to be because as soon as the zstack is removed everything works.
At last ive discovered the issue, the text fields are extending way out of the canvas. Ive fixed the width of the textfield as a temporary solution but still looking for a way to fix this relative to the screen rather than the background as the field extends to the size of the image. Let me know if you can help as im just starting to use xcode!
I think its because the image cause canvas to be much more bigger and you use edgesIgnoringSafearea(.all)
Try to use on the image clipped() method and i think it will fix your issue with the padding.
And also try to add foregroundColor to the test fields

iOS / Titanium: Clear Button cannot be seen on a TextField with a black background

I want to add the clear button on the TextField like so:
<TextField clearButtonMode-"Titanium.UI.INPUT_BUTTONMODE_ALWAYS" backgroundColor="black"/>
The clear button usually looks like this:
However the issue is that the background of the TextInput is black. This means the clear button cannot be seen.
How can I change the appearance or colour of the clear button so this is not an issue?
I know that it should work but if its an ti sdk issue then you should try to test it with other ti sdks.
If you find same issue then you can file a JIRA issue with test app and then you can use rightButton property to achieve what you want.
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextField-property-rightButton
To be completely honest man. you could just add a view inside the textField. I think its bit more efficient anyways and if you code by percentages as long as your border radius is more then half the height it will be circle.

Ipad splitView, is it possible to resize the splitView's rootController?

Right now I have a splitview that loads PDFS to a webview. When the application is in portrait mode, the formatting is correct and it does what it needs to do. However, when I switch it to landscape mode, the pdf is too large and goes off of the right side of the screen. How would I fix this? One solution I can think of is to resize the rootView table, by making it thinner it would open up more space for the PDF. Any ideas on how to do that? or if it is even possible?
Thanks in advance!
You can't with the default SplitViewController, luckily Matt has written a pretty good one that can do stuff like that!
You can find it at GitHub: https://github.com/mattgemmell/MGSplitViewController/

How can I control the color of the text used in a magnify window?

We are using a UITextView with a dark background. As such we have made the text white color in order to be easier to read. The problem is the magnify window that pops up when you hold down your finger to move the insertion point uses white for the text color as well. This makes it impossible to see exactly where the insertion point is.
Is it possible to independently control the text color used in the magnify window?
Here is a screen shot illustrating the problem.
I just did a quick test in here and it's working fine.
I tested with firmware 2.2.1, in the simulator and using a device.
This is what I did to test it:
1- Created a new View-Based project
2- edited the nib in the Interface Builder, added a UITextView, setting the text to white and the background to gray, leaving everything else default
Do you have something different?
Hmm, it works correctly in the Notes app. Not only is the background yellow, you also see the lines.
Maybe it depends on whether you set the background color directly on the UITextView or make it transparent and set the background color of its containing view?
I don't think you have any control over that. And I think you should file a bug report with Apple over that. It should be smarter than that.