Most voted "objective-c" questions
This tag should only be used for questions that are about Objective-C language resources or rely on language code. The "Cocoa" and "Cocoa-touch" tag should be used to ask about the Apple framework or classes. Use related [Ios] and [osx] tags for specific issues for these platforms.
Learn more…276 questions
Sort by count of
-
0
votes1
answer186
viewsObtain latitude and longitude
I would like to know how to get latitude and longitude in iOS using Objective-C. Could someone help me? I’ve followed several examples but none displays the correct information.…
-
0
votes1
answer63
viewsHow to use only one music from iPod app library?
I am creating a simple alarm and would like to know how to "pick up" or "point" to a particular song chosen by the user, which is in your iPod app library. How could I store this note?
-
0
votes2
answers300
viewsRead file . xlsm (Excel) from my application
How I read a file .xlsm (excel spreadsheet) from my application? Basically I need to get the data from this spreadsheet. Get the value of each of the cells that this has. Is there anything native…
-
0
votes1
answer63
viewsHow to use Uisearchbar with data from Core Data?
I’m trying to filter the name of the cells in a table, loaded with data from Core Data, but I’m having a crash. I am using the following code to filter the cell title: -(void)searchBar:(UISearchBar…
-
0
votes1
answer148
viewsHow to control the lines between the main Uitableview and the Uitableview of the Uisearchbar?
I am implementing a table with search field, and I am using UISearchBar. I have two variables in the app: a NSMutableArray for the original data, and other NSMutableArray for the filtered data. When…
-
0
votes1
answer289
viewsHow to collect keyboard when cancel search button is clicked?
How to collect the keyboard when the cancel button is clicked on a Uisearchbar? I tried some methods and even the delegate’s methods, but it didn’t work. I’ll put up an image to be more precise: I…
-
0
votes1
answer226
viewsHow to resolve this error by returning from web service access?
I’m developing an app that consumes data from a web service and using Afnetworking to make the requisitions. During the testing phase the app worked and received the data normally. So I exported the…
-
0
votes1
answer77
viewsHow to change the size of Google Map View for iOS
I’m using the Google Map SDK for iOS in a project, but when using the service by default it covers the entire screen. But I need space to add some buttons on the screen. How can I resize the map…
-
0
votes1
answer58
viewsUiimage Temporaria
I need to download an image, it is displayed, but after displaying it I need to delete it from the device. But always when I open the app again it is already loaded. func getPhoto(pathPhoto: String,…
-
0
votes1
answer349
viewsiPhone 5 and iOS 8 - Location permissions
On all devices is OK, the request for permission to use the location appears (independent iOS 7 or iOS 8). Only iPhone 5 does not appear. Code for requesting permission: var versionString =…
-
0
votes2
answers102
viewsProblem when displaying image with Uiimageview
When displaying image included in project format .png using UIImageView to only display the simulator screen is blank. Code used: UIImage* imagemLocal = [UIImage imageNamed:@"button.png"];…
-
0
votes2
answers106
viewsDownload data in String format and JPG images
I am implementing a project, which has a Web Service. In this Web Service are saved product data, containing the fields: Name, Value, Description and Product Image. I did some tests downloading only…
-
0
votes1
answer103
viewsHow to work with 1 to 1 relationship in core data?
How do I perform operations relating entities in Core Data? These operations will relate data between 2 entities, being of type 1 to 1. I want to relate the image attribute of table 1 to the…
-
0
votes2
answers237
viewsAftnetworking with Token to download image
I’m testing Aftnetworking to download images from a backend, but I’m having errors downloading images. I tested several implementations, with this implementation presents error of content not…
-
0
votes1
answer54
viewsProblems starting Uiimage with image path from core data
I downloaded an image and stored it on disk. After downloading the class inserts the image path into the core data, this string:…
-
0
votes1
answer127
viewsHow to check empty records in Core Data?
I’m working on a way to see if the data has been downloaded and logged correctly into Core Data. Due to the poor quality of 3G connections and the possibility of failure, I would like to know if…
-
0
votes1
answer60
viewsProblems inserting new registration to Core Data
I noticed a problem with the code, when I try to insert a new record in an entity, I lose all the old records and only the new one is saved. Code used: NSManagedObjectContext * context = [self…
-
0
votes1
answer49
viewsHow to pass map data to be displayed by another class?
I’m using Google’s Maps API for iOS. I was doing some testing and I set up a UIView as a subclass of GMSMapView and kept a pointer for her in ViewController, getting: #import <UIKit/UIKit.h>…
-
0
votes0
answers91
viewsNslocalizeddescription=Expected status code in (200-299), got 401
I’m trying to log in to an application in objective-c using Restkit but when I type in the email and password it shows the following error in the console:…
-
0
votes1
answer31
viewsHow to add new property to the Gmsmarker class?
Adding a new property to this class. I added it to the Gmsmarker. h file, but while trying to use the new property I received this error: -[Gmsmarker setIdRegister:]: unrecognized selector sent to…
-
0
votes1
answer104
viewsHow to parse a Json with 2 columns in Objective-C?
In a Get using PHP I am making the request of 2 columns this way: <?php include 'conexao.php'; header('Content-Type: text/html; charset=UTF-8'); //Converte para UTF8 os resultados da query…
-
0
votes1
answer86
viewsCore Data issue in iOS 7
I have a problem between iOS 8 and iOS 7. I am using Core Data, I have an entity called Pessoa (NSManagedObject), only when doing a data update happens a EXC_BAD_ACCESS, only that, no other…
-
0
votes1
answer193
viewsUsing the camera
I am implementing a screen that I would like to show the image of the camera, but I would just like to show the image, not with features of switching to front camera, cancel, and capture. Is there…
-
0
votes1
answer44
viewsHow to Choose position to print a string in a text?
I’m developing an app where the user can choose in the middle of a text, the position where the output value of a string should be printed. Example: Normally when we print a string in the middle of…
-
0
votes1
answer72
viewsHow to use an Nsstring to create an Nspredicate?
I am creating a custom search, but I am creating the strings of the predicate as a Nsstring. However I am getting an error. Code used: NSMutableString* escolhasSIM = [[NSMutableString alloc]init];…
-
0
votes1
answer265
viewsXcode function library (Objective-C)
I need to create a function library in Objective-C. The idea is to create something more or less like the function library Math. h. That is, it is not necessary to instantiate the class to use the…
-
0
votes1
answer54
viewsHow do I know which fireDate is in the next scheduled notification?
I wonder if there’s a way to catch the next fireDate from the current date. I have a method that creates the notification and repeats it every given period. How do I catch the next fireDate? I would…
-
0
votes1
answer38
viewsuitextfield - Position cursor during editing
I am doing a treatment for Uitextfied editing to format text as decimal with decimal separators and thousands. My question is how to always position the cursor in the right corner of the text field?…
-
0
votes1
answer35
viewsHow to Rotate Viewcontroller Manually?
I started a project, where I use a Custonnavigationcontroller to control the navigation of the screens. In this project, only one viewcontroller can be rotated to Landscape mode. But the following…
objective-c uinavigationcontroller portrait landscape orientationasked 9 years, 8 months ago Tiago Amaral 1,520 -
0
votes1
answer43
viewsError creating Tabbarcontroller at runtime
I’m having a problem creating a Tabbarcontroller at runtime in objective-c, when I call the method that creates the tabbar an error occurs: Thread 11: EXC_BAD_ACCESS(code=1, addess=0x3000000c) I…
-
0
votes1
answer92
viewsUitextfield does not display keyboard (IOS / Objective C)
My field (Uitextfield) does not display the application keyboard when it is selected through the simulator.
-
0
votes1
answer28
viewsAfnetworkreachabilitystatus with inconsistent values when reestablishing connection
I’m trying to use the Restkit framework to observe the changes in the connection through the method setReachabilityStatusChangeBlock class AFHTTPClient. As soon as the application starts I get the…
-
0
votes2
answers69
viewsviewDidAppear equivalent on apple watch
I need to present a short animation (a sequence of images) when my App starts. The method willActivate does not help me as it is still not showing anything. There is some notification or something…
-
0
votes1
answer181
viewsHow to load data from a specific mysql user in Xcode?
My code is working, I’m getting the data I need, but I have to write the email of the user who wants the data in my php file. I wanted to receive user data that email is typed into a textField in my…
-
0
votes2
answers106
viewsXcode cannot find button
I created a button on storyboard to connect to a viewController. When clicking on the button occurs the error: thread 1:Signal SIGARBT What could be causing such a mistake? I’ve seen many tutorials…
-
0
votes1
answer46
viewsBasic authentication using Afnetworking
How can I do a basic HTTP authentication using Afnetworking in Objective - C ?
-
0
votes1
answer224
viewsGet my location through reverseGeocodeLocation
I would like your help to solve a problem, I have a delivery system that gets my location using GPS, I’ve been reading something about "reverseGeocodeLocation", but I get only one result but it’s…
-
0
votes1
answer48
viewsAdd Uitabbarcontroller without storyboard
How do I add a Uitabbarcontroller with Uinavigationcontroller, but I would like to add in a second view, because I have the login start screen and I would not like to display the tabbar in that…
-
0
votes1
answer186
viewsInvoke touchInside method via SWIFT programming
Good evening guys, my doubt can be simple for many more I’m having a little trouble to solve the same. Come on !!! I created a button (Uibutton) and would like to know how I invoke an action when it…
-
0
votes1
answer46
viewsAmendments with IOS 9
I was programming using the language Objective-C and when the update of Xcode 7 there were some errors in the language, one of them is in the file AppDelegate.m: (NSManagedObjectContext…
-
0
votes2
answers208
viewsLabel Position - Swift IOS
Good evening folks. How do I leave the label that is informing the current weight positioned below the progress bar cursor ? To make this progress bar I am using Gradientslider…
-
0
votes1
answer182
viewsUpload. mp3 file to PHP server in Objective-C
How do I upload a file. mp3 on my iphone to my server using an upload page I managed to do with images but I’m not able to do with files . mp3 could someone help me? Follow the below the code I use:…
-
0
votes1
answer99
viewsMonitor IOS users in real time
Someone would know how to answer me the best way to get the location of a user in real time through GPS on IOS, I’m wondering if it would be correct if I get the location of the user every 10…
-
0
votes2
answers102
viewsPush notification via an array
I’m having a problem sending push notification to multiple users at the same time, I have a sending page plus it’s sending only for a single token I’d like to know how to get it to send to an array…
-
0
votes0
answers48
viewsCorebluetooth - Send and receive a large data pack
I am developing an iOS app using only Corebluetooth, in the same application the device can be a Central or a Peripheral. Well, everything works fine, until I try to send a data packet above the…
-
0
votes1
answer52
viewsWhat’s wrong with the code below?
When I clicked on "Run" in the Xcode to run the code and see if everything is all right, I said that everything worked out ("Build Succeeded"), but in the output of the code appears the following:…
objective-casked 8 years, 11 months ago Henrique Dourado 131 -
0
votes0
answers67
viewsSend location to a background Webservice
How to make my IOS application using objective-c send my location in the background without wasting battery, and not fail and not fail by Apple, someone would have an idea how to do this?
-
0
votes1
answer50
viewsHow do I get a JSON and store in a list?
I would like to receive a JSON that contains several messages and stores it in a list that contains one JSON content per position The JSON format would be this: [{"id":"42","data":"02\/12\/2015…
-
0
votes1
answer85
viewsHow do I execute code with closed or minimized application?
I want to run code that keeps the screen always lit, it already works perfectly when I am inside the APP, however, if I minimize or close it, stop working. OBS: I am using Uikit.framework code that…
-
0
votes2
answers72
viewsHow to prevent the screen from rotating?
I’m making an APP and would like the screen to always be in Portrait. I looked it up online, but I couldn’t find out. I tried using the Uiinterfaceorientation framework Uikit, but it did not work.…