I'm developing an application, I'd like the navigation bar to have the same body color as the project, I'm trying with the following code
UINavigationBar.appearance().barTintColor = UIColor.redColor()
This code works, changes to red...
I made a function to return the rounding of values of type Double ,
the function is working, but I do not know if it is the ideal way to get this result, I think there must be a way without having to use the String class.
var nume...
I'm having some difficulties with simple things.
How do I count how many letras has a variable?
let word = wordEasy[0]
for var i = 0; i < word.count ?????
I decided to make an app in swift this time, and as usual I use my custom control (MenuView).
In the objC I know how it works and everything worked, in swift I followed all the steps, import in the bridging-header.h, and put the MenuViewDelegate...
How do I retrieve the value of a button?
For example:
I have a button in my layout with the name Test button , but I want to assign the name of this button to be clicked on a variable!
Is this possible?
Thank you ] 1
I use a library called Alamofire-SwiftyJSON to make a request JSON .
Example call:
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
.responseSwiftyJSON({ (request, response, json, error) in...
Well, I'd like to know how I can get my map to show the place I've been looking for and center the view at this point. I was able to do with the current location as follows:
self.mapDisplay.setUserTrackingMode(MKUserTrackingMode.Follow, animat...
I would like to know how to find out the screen size that the user is using or the model of your iPhone via
Swift . I know just how to do it in Objective-C
Response in Objective-C:
CGFloat screenScale = [[UIScreen mainScreen] scale];...