How to make address style as following:
Street name + Street number?
For some countries it shows like street name + street number
but for some countries (like France, USA, Canada), it shows street number + street name. What is the reason behind?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is there a way to change UISwitch from right to left? Because in the app the UISwitch is on the right side. I want to place it on the left side.
The app has login page, to be able to login user clicks on the animation "Select your country". When user clicks on that, country list as picker appears as pop-up. Here the first country is Afghanistan and the picker is already on it, but when user clicks OK, it does not select it because as you know picker works if you scroll down or up.
Now I want to set the first object (in my case it is Afghanistan) from the array default selected.
Here is the code:
@IBAction func chooseCountryClicked(_ sender: Any) {
let alert = AlertFactory.alert(title: ExampleLocalizedString.getLocalizedString("choose_country"),
pickerStrategy: CountryPickerStrategy(withInitialCode: selectedCountryCode),
delegate: self)
self.present(alert, animated: false, completion: nil)
}
I have a variable for:
var selectedCountryCode: String?
I hope that I explained myself good enough.
Appreciate your help. Thanks.
Hi there,
The problem is that when I just drag and change the position of my label in xib, it does not effect properly in my app.
@IBOutlet weak var Example: UILabel! is connected to the label in xib file.
In total there are 3 labels, so I want to see them normal, but now it looks like the first label is inside the second label. The second and third label has huge spacing, and they are in very center. The first label is on very left side.
Appreciate your ideas.
Hi there!
I have following code:
func myTextView() {
exTextView.textContainerInset = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
exTextView.textContainer.lineFragmentPadding = 5
exTextView.textContainer.maximumNumberOfLines = 2
exTextView.textContainer.lineBreakMode = .byTruncatingTail
}
So this function gives me the possibility to have 2 lines when I add for example address. But when I add the address:
WA 98103, 4416 Sunnyside Ave N, Seattle
it appears as following:
WA 98103,
WA 98103, 4416 Sunnyside Ave N, Seattle
I guess the problem comes out due to maximumNumberOfLines, but the problem is that I need it. Any idea how to implement that it shows the postal code only once? Or can I set it somehow that it gets the second line directly?
Hi there,
I am using iOS system-popup to ask from the user if he/she wants to share his/her location or not. And there are only 3 options: Allow once, allow while using app, dont allow. I am wondering, if it is possible to have for example instead of "Allow once" give the option "Always allow"?
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Swift
App Tracking Transparency
Core Location
Maps and Location
Hi everybody,
In my app when I do following steps:
I don't allow access to bluetooth for my app
I start the pairing
Then I navigate to settings and enable bluetooth access and coming back to the app.
I see two different behaviours in two different OS version
**So for iOS 15:
It is opening me the home screen and I must start the pairing again.
for iOS 16:
It is opening the view that asks from user "Do you want to perform connection?" and I should select there again if I want or not and then pairing starts again.**
Is it because of iOS versions that we cannot really influence on it?
Because the implementation is same for both OS version. That is why I started to think that it is not a bug, but it is a iOS related feature.
Can you share your ideas about it? If it is iOS related, is there any documentation that I can read? I have searched but couldn't find...
Thanks in advance!