Questions tagged as 'objective-c'

1
answer

Determining content to fill UITableView based on a UIButton tag

I will explain the scenario to be as clear as possible to understand the issue:  In the main screen of my app I have 4 UIButton and each one of them will open a different screen containing each one its own UITableVIew and its conte...
asked by 23.09.2014 / 04:59
1
answer

Query based on relationship, using NSPredicate on Core Data

I have a one-to-many relationship between the Pai and Filho entities, where a Pai can have any or N Filho . Using Core Data , how do I search all Filho , basing my search for a Pai . For example: I have...
asked by 07.11.2014 / 18:58
1
answer

Error while running in Xcode 6 an app created in Xcode 5

I have an app that runs perfectly on Xcode 5. For the purpose of updating, I installed Xcode 6 and went to run the same app (without uninstalling Xcode 5). From there, I found some problems, among them: 1) The app runs only in landscape orien...
asked by 04.11.2014 / 00:27
1
answer

What is the difference in terms of UIViewController and SFSafariViewController navigation?

I would like to know the advantages and disadvantages of webview controllers SFSafariViewController and UIViewController , for the questions below:  - performance  - compatibility  - usability     
asked by 23.04.2018 / 20:42
1
answer

Module compiled with Swift 3.0.2 can not be imported in Swift 3.1

When creating a project and installing cocoapods and alamofire, when running it is only this error and not build in the project, even empty only by importing alamofire    Module compiled with Swift 3.0.2 can not be imported in Swift 3.1 I...
asked by 28.03.2017 / 23:30
1
answer

Objectie-C - How do I get an API response when sending a message?

I'm sending a JSON to an API. When the API receives a JSON, it responds by telling me whether the procedure was successful or not. How do I get this answer? Shipping code: NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWith...
asked by 17.05.2016 / 21:43
1
answer

How can I do in xCode the java code mentioned in the question?

This class on Android when enabled, I can close the app it keeps working and keep the cell screen lit like this Keep screen lit: PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerMana...
asked by 29.01.2016 / 17:22
2
answers

Close the web pageView after loading

I'm using webView on iOS to access a web page within a native application using the objective-c language as in the following example: NSURL *url = [NSURL URLWithString:@"http://www.exemplo.com"]; NSURLRequest *request = [NSURLRequest requestWi...
asked by 09.10.2015 / 14:39
1
answer

Does not xCode components appear in the simulator? [closed]

I'm having a problem with xCode on Swift . From time to time it does not want to appear in the simulator new components that I include in viewController . For example: If I put a simple button on the screen, when com...
asked by 22.09.2015 / 19:22
1
answer

Remove Core Data from a Xcode project

I started developing an application using Core Data in the course of project development and found that Core Data is not the best for the application. In this scenario, I would like to know how to remove Core Data completely f...
asked by 29.09.2015 / 14:24