Posts by George Gomes • 306 points
15 posts
-
1
votes1
answer89
viewsA: How to view recorded records in Core Data?
You can view the database with DB Browser for Sqlite (https://sqlitebrowser.org/dl) opening the Coredata file In the delegate app add this code to know where the bank file is in the simulator let…
-
0
votes1
answer169
viewsA: Constant '' " used before being initialized
The error occurs because this object is empty, it was not initialized, you are only declaring the variable. You must pass an id as parameter in this function so that the call returns the detail of…
-
1
votes1
answer298
viewsA: Webview - Open IOS App with Google Chrome
Replace the last function with this one, it will check if it is possible to open with Chrome and send the link func webView(_ webView: WKWebView, decidePolicyFor navigationAction:…
-
1
votes1
answer71
viewsA: How to get the current Url in a Webview - IOS
After placing a Webkit View in Storyboard and dragging Outlet to the code use the following code: Viewcontroller. h #import <UIKit/UIKit.h> #import <WebKit/WebKit.h> @interface…
-
1
votes1
answer60
viewsA: help with the code below
Yes the error occurs in the conversion because it cannot convert an empty field to a number and Voce is forcing it using ! What you can do is change let LitrosGeral = Double(self.Litros.text!)! for…
swiftanswered George Gomes 306 -
2
votes1
answer37
viewsA: Uitableviewcell expression return error in Swift
in the override func viewDidLoad() { ... add: self.tableview.register(OcorrenciaViewCell.self, forCellReuseIdentifier:"itemCell") Check in the cell if Voce put Identifier as "itemCell" enjoying,…
swiftanswered George Gomes 306 -
0
votes3
answers522
viewsA: Validation of Fields in Swift
Although other alternatives are recommended it is possible to do this way yes, I’ve asked myself that same question using this same field validation case and solved as follows: first you can make an…
swiftanswered George Gomes 306 -
1
votes1
answer36
viewsA: How to change the type of iphone in the storyboard view ?
In the storyboard is not precise because the ratio of 7 and 8 are the same, in the upper left it is possible to vary between any device to make a build and test in the simulator
swiftanswered George Gomes 306 -
1
votes1
answer95
viewsA: Enumeration Swift 4 - What is its usefulness and how does it work for IOS development?
Enum is the way to delimit certain aspect of your code, you can use it to specify a finite number of possibility that may occur in your code, example: a simple calculator, Voce can for example make…
-
0
votes1
answer78
viewsA: How to Disable " Pinch Gesture" Effect with Swift 4 in Xcode9
first make this other Extension of your class that implements the Uiscrollviewdelegate: extension ViewController: UIScrollViewDelegate { func scrollViewWillBeginZooming(_ scrollView: UIScrollView,…
-
1
votes1
answer164
viewsA: Open new screen Swift 4
You can create a alertController, it is a simple warning where you can configure the actions of each button, when the action you want to happen is just call this function: func createAllert(){…
-
0
votes1
answer35
viewsA: Error "Missing '[' at start of message send Expression"
This is because you are not declaring it within a method, so it is only as dropped code within a file try like this: #import "MoipCrypt.h" #import @implementation MoipCrypt -(void) anyFunction{…
-
1
votes1
answer282
viewsA: How to discover and display repeated elements within an Array in Swift 4
There are two ways to understand this question, whether you want to know the amount that a given element repeats in an array or how many times each element repeats. Say you have an array of Strings:…
swift-playgroundanswered George Gomes 306 -
1
votes1
answer118
viewsA: Objective-C inside the Swift?
First create a new "Cocoa Touch Class" in File > New > File Put Objective-C as language: After clicking to proceed the Xcode will ask if Voce wants to create a Bridging Header (it is the class…
-
0
votes1
answer95
viewsA: Should I use tableview, collectionview or scrollview when dealing with vertical items that are different from each other in the Xcode?
The Collection would not solve your problem, since it has the same usability, the difference between it and a Tableview basically is that, besides being able to have the horizontal scroll, it can…