Questions tagged as 'xcode'

2
answers

Detect when a text does not fit in a UI Label?

In my app I put a UILabel and inside I put a text, but apparently the text is longer than it can fit, and I would like to know if you can detect when a text is too long, so you can download the size of the font using code with while...
asked by 22.02.2017 / 19:06
1
answer

Initialize array

I have a question and I do not know how to resolve it. I have this array created: var data: [(x: Double, y: Double)] Trying to use it tells me it is not initialized. You can tell me how to initialize it, I can not do it. Thanks for...
asked by 18.09.2018 / 09:02
1
answer

Error wanting to show an NSNumber value as Integer in a string

I have the following and it throws me an incompatible error integer to pointer ... int *v = [numero intValue]; NSLog(@"Numero %d",v); Where number is a NSNumber . How would you do to print a int ? And a NSInteger ?     
asked by 12.12.2016 / 13:53
1
answer

Problem with connections in Swift

I have a problem with a project that I am developing in Swift, it is for class and I am faced with a problem that I can solve with more than I try. I explain: From the FoodTracker project developed in the Apple Developer Guide I am trying t...
asked by 21.04.2018 / 12:38
2
answers

swift UITableView is it possible to set the header of the table and the header of the sections?

I have a table with a header and several sections (each with a header) and I would need both the header of the table and the header of the sections to be fixed ... is that possible using a UITableView? Then I leave the code of my table: fu...
asked by 19.04.2018 / 20:51
1
answer

Regarding the sentence "compareTo"

I have a question about the compareTo statement. If I have: if(x.compareTo(y)==0) I understand that I am asking if the value of x is equal to and . But if I want to ask if they are different? Should I place a denial forward? if(!(...
asked by 12.06.2018 / 20:06
2
answers

Error running app for IOS in xcode 9

How can I resolve this type of error, when running an app for IOS in xcode 9.     
asked by 19.02.2018 / 20:23
2
answers

like hide keyboard when you play outside and inside a textfield when you have a scrollview

the problem is the following, I am developing an apps in the other view that I have achievement hide the keyboard perfectly but when I am using one with a scrollview I can not hide it in the others I use .resignFirstResponder() and...
asked by 04.08.2017 / 19:48
2
answers

No new iOS app builds in iTunes Connect

a rather curious thing happens to me, I have created a project with Unity, I have exported it to iOS and I have configured in XCode what is necessary for its compilation (Team, certificate, a parameter for hhtps in the info.plist, the version an...
asked by 09.11.2017 / 21:41
1
answer

Scale an image and then rotate it?

I have a png image on an object. The image is a circle filled with a color. I want to scale the object higher than wide so that the circle looks like an oval. When trying to scale the object it works fine but then if I want to rotate the oval an...
asked by 07.02.2017 / 00:25