Posts by Otávio • 653 points
19 posts
-
0
votes2
answers114
viewsA: Error Swift Objectmapper 3.2
Apparently you are using Carthage. Then you need to recompile the modules using the Swift 4 compiler, even if it is in 3.2 mode. First you must configure the compiler for the toolchain of Xcode 9,…
-
1
votes1
answer71
viewsA: What language corresponds to "Foundation"?
At the time this book was written only existtia Objective-C so type "Foundation" can be considered code written in Objective-C. As you are working with Xcode 7 then you should choose between Swift…
-
2
votes2
answers52
viewsA: return Coredat - Swift
Coredata numerical values are mapped to NSNumber. To assign as text to UITextField you must explicitly ask for the value as string: let idade : NSNumber = res.valueForKey("idade") idadeText.text =…
-
1
votes2
answers83
viewsA: Why is there a 'Nsinvalidargumentexception' in this code?
You are trying to initialize a string with a null value on the following line: NSString *string = [NSString stringWithUTF8String:s]; Therefore, you should test if you have a valid c string before…
-
3
votes2
answers111
viewsA: Thread in the background when the app is closed
Note: The answer is based on the fact that you mention the question you want the application to perform after the reboot of the device. There’s only two ways to do that: Develop for devices…
-
3
votes1
answer47
viewsA: Nslocalizedstring does not return matching text
First make sure you have selected the languages you will support in your project: Second make sure that you are using the correct name for the location file, it should be named Localizable.strings…
-
1
votes1
answer313
viewsA: Automatic cell size in Swift
Also put the estimated size (Value that is realistic for your case, a general case just to "accelerate" the computation): tableView.estimatedRowHeight = 100 tableView.estimatedRowHeight =…
-
0
votes4
answers5695
viewsA: Get list of changed files in working directory (Working directory)
The command to show the status of the repository listing all changed files and new files (untracked files) is: git status
-
2
votes1
answer397
viewsA: Which files should be inserted into . gitignore in a Rails project?
Language-independent for my projects I always start with the Github template. And edit based on my preferences. You can find Ruby’s here:…
-
3
votes1
answer389
viewsA: Ionic framework, for which platforms compiles ?
The end result is a hybrid application. Basically webviews running your app. And the supported platforms are iOS and Android. Documentation http://ionicframework.com/docs/guide/preface.html: With…
-
4
votes1
answer127
viewsA: Help with logic
From what I understand your class Procedures() will contain a contato (let’s assume it’s just the name) and a list of n procedimentos So the pseudo code should be about that (I omitted parts of the…
-
1
votes1
answer57
viewsA: How to create email in Swift using Mfmailcomposercontroller correctly?
Make sure your class TelaFinalViewController implements the protocol MFMailComposeViewControllerDelegate. Example how your class definition should look: class TelaFinalViewController:…
-
3
votes1
answer1988
views -
5
votes4
answers15428
viewsA: How do I remove local files(untracked files) from my current branch(branch) in Git?
If the files are in the state Untracked means that the git not yet have they under versioning. You can use the following command: git clean -f Or delete files manually with your preferred program,…
-
0
votes3
answers619
viewsA: Rotation on certain screens
Enable in the project settings all the guidelines you will need. (In your case enables everything, I understand.) In all UIViewController's of your project implement the method…
-
1
votes1
answer127
viewsA: How to check empty records in Core Data?
You can instruct Coredata to return the object that has the "nil properties". Assuming the entity of your example the following request will return all entities that have one of the columns (name,…
-
3
votes3
answers1854
viewsA: How to return points within lightning?
If your problem is to determine if a pair of coordinates belongs to a circular region then I suggest using the following code, assuming a radius of 1km: CLLocation *posicaoAtual = <Posicao…
-
1
votes2
answers300
viewsA: Read file . xlsm (Excel) from my application
There are two projects to work with Excel files in Objective-C. http://sourceforge.net/projects/libxls/ and https://github.com/dhoerl/DHlibxls (Interface to the first)…
-
0
votes1
answer72
viewsA: Predicate with CAST
It is possible to have CAST on an Nspredicate. The syntax is: CAST(<o que vai ser convertido>, 'classe destino') Example: NSArray *array = @[@"10.0", @"8.99"]; NSPredicate *predicate =…