Questions tagged as 'objective-c'

1
answer

Java Equivalent DES encryption?

I would like to know how I can. I have a code in java byte[] key24 = [-17, 55, 99, -54, -20, -99, -79, -34, -123, -100, -118, -42, -111, -108, -62, 123, -17, 55, 99, -54, -20, -99, -79, -34]; byte[] data = [-1, -1, -1, 0, 6, 0, 34, 96]; St...
asked by 20.12.2016 / 18:11
2
answers

How to convert NSData to NSString?

I have a variable nsdata that is a byte array, and I want it as a string, but I do not want to decode it, I just want to have the same frame but in string. nsdata = <024101e6 90eaf082 01e0df42 020002df 3d106967 e83efea5 c7bfe062 dca4...
asked by 14.12.2016 / 18:26
1
answer

Compile .h depending on the target that is running

I have two .h in my project with the same auto-generated name. Does anyone know how to compile one or the other depending on the target that is executed? It is imperative not to change the name of .h     
asked by 01.03.2016 / 14:43
2
answers

UILocalNotification does not add me correctly applicationIconBadgeNumber in day change

I do not quite understand how the increase in the Badge of the ios works. With the code that I put next I get the correct notification, but when I spend a day instead of putting, for example from 0 to 1, it happens to 2 ... I do not unders...
asked by 29.02.2016 / 16:41
2
answers

I can not put the button as setEnable: NO

I have an interface with a button that shows an image when it is active and another when it is deactivated. When I start the view, the button always appears as activated, although in the viewDidLoad I do a [self.button setEnabled: NO] If a...
asked by 05.01.2017 / 14:55
2
answers

Scroll when the keyboard appears

I have a question about how to handle when the keyboard comes out in an iOS application. It turns out that in Spotify on the iPhone when you are going to register, you select a field and exit the keyboard. The registration button is covered....
asked by 31.05.2017 / 16:29
2
answers

Do not finish the main thread until you finish another task launched in the background

I have a method with a completion that collects a data in the background. How do I use this data in the main thread before it finishes its execution? That is, the main thread launches a method in the background and must wait to collect a data...
asked by 03.05.2017 / 12:57
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
2
answers

viewDidAppear does not update the views to the actual measurements according to the device

The first time I install a viewController, the measurements of its storyboard views update me to the real ones of the device. So if I make a self.view.frame.width inside viewDidAppear it gives me the value of that measure adapted according to...
asked by 06.03.2018 / 22:15
1
answer

Table View with height of different cells and adjustable to their contents

I'm trying to make a view that contains a TableView with different cells of different heights that fit their content. But I do not find any example that works well. What I do is implement a tableView with a cell prototype to whi...
asked by 22.09.2017 / 11:11