Questions tagged as 'objective-c'

1
answer

CollectionView cell with Highlight

I have a collectionView with several cells, when I click one I need it to look like it has been pressed with a color or animation. For this I use: (void) collectionView: (UICollectionView *) collectionView didHighlightItemAtIndexPath: (NS...
asked by 17.01.2018 / 09:32
1
answer

Create protocol from XCode for Objective-C without touching code?

I would like to know if it is possible to declare / create a protocol of a method in Objective-C by using XCode (ie without writing code)     
asked by 03.07.2017 / 20:47
1
answer

NSPredicate simulate an SQL "Select count (distinct columnName)" of an array

I have an Array full of 'n' dictionaries. These dictionaries have the same numbers of fields 'x' fields, with the same name (As a simulation of a typical database table). Field 'B' for example may contain a number or name. I want to know how man...
asked by 21.03.2017 / 16:01
1
answer

Do a fadeout of one view that is below another?

I have a program that when a button is pressed, a view appears superimposed on the main one. I would like the view below to darken slightly (fadeout) so that the view that appears superimposed more contrast. I can not do it well because the code...
asked by 17.01.2017 / 11:07
2
answers

Value of a JSON or NSDictionary to integer

I'm doing tests on a webservice by taking the value of a JSON that returns (it's an integer) it throws me an error. To take the value I do it with: [[respuesta valueForKey:@"code"] integerValue] The error you're leaving is...
asked by 20.12.2016 / 22:04
0
answers

How can I justify the text of a UItextView in Objective-C and prevent words from separating?

I have a chat in which at the moment of showing the dialogs in a textview, the words are separated when the line breaks, how can I solve this? The code to create the textView is as follows: _textView=[[UITextView alloc] init]; [_textView...
asked by 21.12.2018 / 21:03
1
answer

My viewcontroller does not show the texts

I work with objective c and I have a very strange problem ... I can switch from one view controller to another in a normal way, the problem is that in the second viewController the labels or the texts of the buttons are not painted ... Do you kn...
asked by 21.09.2018 / 06:16
1
answer

How do I save a file in the data folder of another application?

I am developing an application which I want to save a file ' xxname ' to the data folder of another application, the file is saved in the data folder of my application but how I move it from that folder. Example: From: var/mobile/co...
asked by 12.05.2018 / 23:15
1
answer

Unable to simultaneously satisfy constraints: FBSDKLoginButton

I have created a button of type FBSDKLoginButton to which I have given a series of constraints, including a height. This is the error that jumps me: Does anyone know how I can prevent this warning from skipping on my console? It is not...
asked by 24.04.2018 / 15:46
0
answers

Handling custom cell constraints

I am new to objective-c, I am managing a list with custom cells which show information through several labels, I do not use autolayout for compatibility problems between old apple devices, the problem I have is that when I turn the cell phone sc...
asked by 13.03.2018 / 23:54