Posts by João Rocha • 71 points
5 posts
- 
		0 votes2 answers128 viewsA: While an existing Transition or Presentation is occurring; the navigation stack will not be updatedThe dismiss is executed asynchronously, i.e. dismiss has not finished executing when the performSegue is called For this it is possible to use the completion:, follows the example below of how your… 
- 
		2 votes1 answer62 viewsA: Java "per unit" logicAlthough the problem is a programming logic problem and not in itself programming, I made an example code for you to adapt. public int calcula(double valor) { double unidade = 0.0049; // valor da… 
- 
		0 votes2 answers438 viewsA: Javascript for when clicking on a link it simulates the down arrow keyIt would be something like that? $("#foo").on('click', function (){ jQuery.event.trigger({ type : 'keypress', which : 40 }); }); <script… 
- 
		2 votes1 answer68 viewsA: How to Format a String or Put Mask with TotalcrossI found a solution, but I don’t know if it’s the best. Using the mask of totalcross.ui.Edit itself, the method is as follows:: public string formatar(String text, String mask) { Edit edit = new… totalcrossanswered João Rocha 71
- 
		3 votes1 answer68 viewsQ: How to Format a String or Put Mask with TotalcrossI’m using it as follows, but it doesn’t work because of the compiler using things from javax.swing.text.Defaultformatter. public string formatar(String text, String mask) throws ParseException {… totalcrossasked João Rocha 71