I'm having a problem decimally formatting my code in Objective-c, I'd like to take advantage of only 2 decimal places of my variable that is float .
Ex: Variable value discount = 4.00043621
I need to be stored only 4.00...
I would like to call a rest service using the AFNetworking library.
How to make a call synchronously, ie wait for the return of the webservice?
For example:
Method that will return a carriage object:
Carro *carro = [self findCarro...
Using the arc4random_uniform() method, how should I assemble the logic to generate a random within a given range?
For example, given the range [5, 10]
Random Candidates:
5, 6, 7, 8, 9, 10
How can I make asynchronous requests in iOS TestCases? Example:
-(void)test
{
UserModel* user = [UserModel sharedInstance];
[user requestUserInformationWithCompletion:^(NSError* error, NSDictionary* info){
if(error)
{...
I set up a builder interface to load a webview, with .h, .m, and .xib.
In a side menu, when I click on an option, I need to call this webview. Running the application, clicking this option returns the error "Thread 1: SIGABRT signal" in main.m....
Scenery:
Do a query using CoreData looking for records with a city and state, and return only the 'name' and 'address' columns of the location.
I'm currently using the following query:
// Array to be returned
NSMutableArray* arrayRegi...
I'm making an application where I need to securely send user data to the Web Service using PHP. For this, I'm researching about security for iOS.
What is the recommended method and what are the points that I should be concerned about?
Plea...
I'm creating a chat for IOs in Objective C, and I use custom UItableViewCell. My difficulty is to resize the Cell as the text in the chat, like the image:
Andthissecondscreen,ishowitis,withoneconversation,overlappingtheother,withouthavingali...
I'm trying to run a loop in Xcode , however it does not work.
The console is:
Type the loop number:
5
Nothing else happens in the terminal. There is no 0.1,2,3,4,5.
In short, it gets stuck after I type any number, bu...
How do I set only a UIViewController to be enabled in rotation?
The scenario is as follows:
I have 5 screens, and in all of them I should only enable the mode
portrait. But I have a sixth screen, and it must be enabled
the la...