Posts by JdsMedeirosBR • 392 points
21 posts
-
1
votes1
answer58
viewsA: Gravity with "Physics" Corona SKD library (ERROR)
Several physics functions cannot be called during a collision event, exactly as the warning message says. It is necessary to perform this type of operation after a very short timer (10 to 50…
-
0
votes1
answer113
viewsA: Remove element/function Corona SDK
If you are using Composer, put the object you want to delete inside a display group and in the Composer function you put the object to be removed (display.remove(object)). So every time this scene…
luaanswered JdsMedeirosBR 392 -
1
votes1
answer259
viewsQ: Convert . log file to . txt in Bash
Hello, I wonder how I can convert a. log file generated in a container in Docker and convert it to a txt file using Bash.
-
1
votes1
answer59
viewsA: How to add value of variables to the value of a saved variable in userdefaults
It would look something like this... var saldo = NSUserDefaults.standardUserDefaults() let valorInicial = "50" saldo.setObject(valorInicial, forKey: "Valor") //Salve a informação saldo.synchronize()…
-
2
votes1
answer98
viewsQ: HTML scrapping with pure Javascript
Hi, I have an html that has the following example sequence: <links class="canais-teste"> CANAL 1 <links/> There are some 80 excerpts of these, I wanted to only take the contents from…
-
0
votes1
answer31
viewsA: Simulated Metrics Change in Xcode 8
The inferred is standard, with it you can use Storyboard normally, but at the bottom of the Xcode there is the simulation of the screens of the device through icons of Vices.
-
0
votes1
answer37
viewsQ: Complete Range Script on Swift 3.0
I was normally using this code in a Swift 2.0 project, then decided to upgrade the project to version 3.0 and adapt some functions that changed... Only the last "squeak" argument I can’t adapt. Code…
-
1
votes1
answer3356
viewsQ: Edit txt file by bat
I have the following problem: In a Windows directory, I have 3 files .txt that every day is created automatically. Within them there are several lines with information. I wish to erase two lines…
-
1
votes1
answer199
viewsQ: Update table with data from another table decreasing character
Hello, I have the bank BDMCOM1 that has a table Product Balance and a column Quantity with values like: 1,000. But I have another bank BDMCOM1_V3_ALEA that also has the table Product Balance and…
-
4
votes1
answer3721
viewsQ: Insert X amount of characters in SQL Server field
Hello, I have two banks BDMCOM1 and BDMCOM1_V3_ALEA, both of which have a table called Saldodeproducts and the field called Codigodoproduto, in the table of the bank BDMCOM1, Codigodoproduto has 5…
-
1
votes1
answer77
viewsA: I can’t change the rootViewController
let storyboard = UIStoryboard(name: "PaginaInicial", bundle: NSBundle.mainBundle()) let loginView: SignInVC = storyboard.instantiateViewControllerWithIdentifier("SignInVC") as! SignInVC…
-
5
votes2
answers4322
viewsQ: How to make decision structure to change color in a bat?
Hello, I would like to know how to make a decision in the following situation: I have a cmd window with a constant ping, I wanted the script to analyze when the ping is normal the letters of cmd are…
-
0
votes2
answers159
viewsA: Global constant Swift 2
You can create a Swift class with the settings you want and put your variables there. then in any class you instate the configuration class and access the constant you want. Example: Create a…
swiftanswered JdsMedeirosBR 392 -
0
votes2
answers70
viewsA: Picker View - Display an Imageview according to the sum of values
if pickerDataSource[0][row] == "a" && pickerDataSource[1][row] == "1"{ print ("coloque a cor desejada") } else{ print ("coloque outra cor") } Before Else, you can put an Else if and go…
-
0
votes1
answer85
viewsQ: Label moving as digital signage
Hello, I would like to know how I do in Swift a phrase keep passing from right to left and when every sentence pass she keep doing the same procedure forever, like a digital sign.
-
0
votes1
answer85
viewsA: How to make a Reusavel Tableview?
I did not understand your question, but I believe you want to have another tableview on another screen the same way the first, besides mounting it on the storyboard and connecting the outlet’s, just…
-
1
votes4
answers874
viewsA: How to work and switch multiple View Controllers via code?
You can use the method delegate of UITextField: textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool To check the characters…
-
0
votes1
answer62
viewsA: How to transfer content from one Viewcontroller variable to another
You have to instantiate the previous screen: var Transferecor:Telaajustesviewcontroller = Telaajustesviewcontroller() Then you will be able to pick up her attributes through Transferecor.Cor…
-
2
votes1
answer41
viewsA: How to pass a "title" on an Int-like "Uialertcontroller" with Swift?
Have you tried instead of: let id = String(format: "%f", obj.id) do: let id = "\(obj.id)" ???
-
1
votes1
answer99
viewsQ: Request for slow scrolling json for tableview
I have an application that returns a json to a tableview, but each time I roll the cells it kind of "chokes", I was told that I would have to leave the return function of the asynchronous json...…
-
1
votes1
answer313
viewsQ: Automatic cell size in Swift
Hello, I have a project that has a tableview with custom cells, up to Swift 1.1 the method tableView.rowHeight = UITableViewAutomaticDimension in the viewDidLoad and the number of lines in 0, were…