Questions tagged as 'swift3'

0
answers

Problem with UICollectionViewCell Custom

I'm doing a questionnaire in ios with swift 3, the problem I have is that when I get to the 4 cell in the collectionView the elements in the UICollectionViewCell are duplicated as shown in the image this is my UICollectionViewCell code...
asked by 09.09.2018 / 03:20
1
answer

How to define Vary for Traits for a button in swift3

I have problems to implement a design for a button, what I am trying to do is that my button in the vertical view only shows a centered image and when it is horizontal it shows an image and a title aligned to the right, I have been trying to use...
asked by 29.05.2018 / 16:34
0
answers

good night, error in swift

Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value. I have 2 viewcontroller with two buttons on each ViewController to handle it with the two views but I get an error but I can not solve it     
asked by 07.05.2018 / 05:48
1
answer

How is CamelCase used in Swift3?

How can I use CamelCase on a String I use in Swift 3? The problem is that I have an example of how I could apply it. For example I use a variable like the following:    var textTest: String="amelCase is a writing style that is   Applies to...
asked by 23.04.2018 / 00:56
1
answer

Variable returns me nil finishing a function

At the time of wanting to add data to an array, the function shows me that the elements are added, but at the time that the tableView deploys what the array contains, it displays that it contains nothing, what can be the fails? func descargarI...
asked by 04.02.2018 / 02:29
0
answers

Compare varible swift 4

I have my Grid class, where I created a multidimensional array placeBoatRandom(currentBoat: AircraftCarrier()) placeBoatRandom(currentBoat: Destroyer()) placeBoatRandom(currentBoat: SubMarine()) func placeBoatRando...
asked by 06.02.2018 / 14:14
1
answer

retrieve the 'title' value of a button

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let identifier = "item" let cell = collectionView.dequeueReusableCell(withReuseIdentifier: identifier, for:...
asked by 01.02.2018 / 11:50
1
answer

Access from one UIViewController to another UIViewController without segues

I have a UIViewController called AController . This displays a second UIViewController called BController , but does so in modal format - overCurrentContext . BController has 3 buttons, each one leads to...
asked by 30.01.2018 / 12:01
1
answer

Deactivate items in UICollection View

I have a UICollectionView where buttons are created func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return (self.myGrid!.HEIGHT * self.myGrid!.WIDTH) } func collectionVi...
asked by 06.02.2018 / 18:01
0
answers

Error with Google Maps sdk in Swift

I have the Google Maps app in swift but I have an error: This is my code: @IBOutlet weak var mapa: GMSMapView! let camera = GMSCameraPosition.camera(withLatitude: lat, longitude: lon, zoom: 14) let mapView = GMSMapView.map(withFram...
asked by 24.01.2018 / 10:43