Questions tagged as 'objective-c'

1
answer

Do not allow text to be placed in a NSTextField text box

I want to store numbers using NSTextField, not allowing you to write text in the text field or checking it using if(es texto) then no almacenar What would be in the second case "is text"?     
asked by 05.02.2018 / 17:07
1
answer

Problems with editButtonItem

I have a question. I put a button on objective C, self.navigationItem.leftBarButtonItem = self.editButtonItem . He shows me the button but he does not act on me. I had it mounted on a TableViewController and I have passed it to a...
asked by 30.07.2017 / 01:18
1
answer

Objective C - Problems with texts in cell

I'm trying to create cells with dynamic height, with only one label I have no problem, however, when I put two or more labels inside my cell, I cut part of the labels or in some cases it does not show it. The height is like this: - (CGFloat...
asked by 19.07.2017 / 19:19
1
answer

My Objective-C method does not work

I want to call a method of another kind that shows a screen, the problem is that trying to call it from another class does not do anything. I do it in this way example: NameClase *c = [[NameClase alloc]init]; [c metodo]; or [[c init]me...
asked by 07.07.2017 / 18:34
1
answer

How to return to the previous view Objective-C [closed]

How can I go back to the previous view but when I come back? example with arrows and dots: I'm here º and I'm back with [_controladorSuite.controladorDeNavegacion popToRootViewControllerAnimated:NO]; as I return from where I retu...
asked by 30.05.2017 / 20:00
1
answer

How to view the subviews of a UIView within a UIView Objective-C

How can I see the components of a view within another view? As I see the components of the main view: NSArray *sub = [self.view subviews]; if ([sub count] == 0) return; for (int i=0; i<sub.count; i++){ NSLog(@"Subview: %@", sub[i]); }...
asked by 24.05.2017 / 00:47
2
answers

How to join common and consecutive elements of an array in Objective-C?

I'm new here, I hope you can help me with a question that has come up for a chat project I'm doing. The problem is this, I get all the message history of a chat from PHP in a json and I pass it to an NSMutableArray and I show it in a TableVie...
asked by 21.02.2017 / 22:03
3
answers

How to make a copy of NSUserDefault and restore it again in Objective-c

I have not found anything with this topic, and I wanted to ask if anyone knows if it can be done and if that is how it is done. I have my object: NSUserDefaults *alertas; and I want to make a copy of it in my database, in case a user del...
asked by 25.02.2017 / 21:01
1
answer

Show notifications with objective c

I'm making an application in objective C to show Firebase notifications link and I've I managed to receive and display the messages by console, I tried to appear in the notification tray of iOS but it does not come out. I have tried several...
asked by 12.05.2017 / 09:35