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
-
1
votes1
answer39
viewsiOS Animation does not fix the endpoint when used inside a Uitextfield in the didBegin
I want when the user enters a field UITextField, make an animation simple to move a UIView down, for example. If I put my Up Inside routine works, the same routine in didBegin of UItextfield doesn’t…
-
1
votes1
answer238
viewsValidate Objective-C field
Setting: When filling out a form, it must be checked if one of the fields has been filled in correctly, containing 6 numbers followed by two initials that are the states of Brazil. This is not email…
-
1
votes1
answer98
viewsChange in image density (IPR)
I am working with a project that I do image capture and I need to transmit this image with 200dpi, I would like to know how to change the image density to 200 dpi ?
-
1
votes1
answer142
viewsJava to Objective-C conversion
I need to convert this small code in Java to Objective-C to run a function in Objective-C, but there is an error that I haven’t been able to find yet. Java code: final char CHR0 = 0; String…
-
1
votes2
answers272
viewsHow to perform asynchronous request using JSON?
Scenario, I have a data request using JSON but I would like this request to be performed outside the main thread of the app, so that it does not catch and that the user can perform other operations…
-
1
votes1
answer305
viewsQuery based on relationship, using Nspredicate in Core Data
I have a one-to-many relationship between entities Pai and Filho, where a Pai may have any or N Filho. Using the Core Data, how do I fetch all the Filho, basing my search for a Pai. For example: I…
-
1
votes1
answer181
viewsHow do I know the app’s web service is down?
Scenario: The app consumes data from a web service, so that the app does not get "locked" I added the task of downloading the data in a secondary trhead, according to the following code:…
-
1
votes2
answers102
viewsScroll Uiscrollview automatically when entering Uitextfield
I need to create a form that scrolls the screen as it is filled out. The idea is that the screen scrolls as I fill and so displaying the fields that are below the keyboard.
-
1
votes1
answer563
viewsHow do I know when the app quits on iOS?
I’m developing an app that sends notification by push, but so that my server does not send notifications to the devices from which my application was uninstalled and does not pollute my server, as I…
-
1
votes1
answer94
viewsError running Xcode 6 an app created in Xcode 5
I have an app that runs perfectly on Xcode 5. For update effect, I installed Xcode 6 and ran the same app (without uninstalling Xcode 5). Then I found some problems, among them: 1) The app runs only…
-
1
votes2
answers119
viewsHow to send data to web service using Afnetworking?
I have a form that must be filled in the application and sent to the web service to register a new user. How could I send this data to the web service using Afnetworking 2.0? I tried to use the code…
-
1
votes1
answer72
viewsPredicate with CAST
Accessing the database .sqlite via sql normally I can use the function CAST('coluna' as decimal). Via NSPredicate using CoreData, how do I do the same thing? I have a column like String and I need…
-
1
votes1
answer59
viewsHow to use Uibutton icon
How I put an icon in a UIButton through the .storyboard? Through the .storyboard has the options of UIButton between them has the option image where I can enter a path to an image for the button.…
-
1
votes1
answer180
viewsParameters for a Container View
The scenario is as follows: I own a UIViewController and within this controller I own one UITableViewController added as a ContainerView. How do I pass parameters between my UIViewController and my…
-
1
votes0
answers84
viewsHow to create Uisegmentedcontrol customized?
How to create UISegmentedControl customized? My goal is to create a UISegmentedControl , as in the image below:…
-
1
votes1
answer99
viewsClear Context using Coredata persistence
I wonder if there’s any way to "clean up" my context using the Core Data. Because I have a problem that when I update the application, the same after saving the records in the database, also keeps…
-
1
votes1
answer334
viewsFormat Brazil Currency in Objective C
I have a string already formatted, I would like to turn it into a float and then into a number formatted for currency. exit entrance 1.234,10 1234.1 or 1234.1 exit entrance 1.234.10 1.234,10…
-
1
votes2
answers2410
viewsOpen link to facebook in iOS Safari
Setting: I own an app, which has a link to a particular page on facebook. When the user clicks on the link, it should be directed to the page and load it with Safari. But if you have the Facebook…
-
1
votes1
answer60
viewsProblem receiving the return of an object
I created a class to download data from a web service. And I take the following test steps: I instate the download class in viewDidLoad of Viewcontroller and then run the method, as in the code…
-
1
votes1
answer55
viewsHow do I use Airprint to print a text from a Uitextfield?
Someone could indicate a tutorial, or sample code explaining how to print a text from an Uitextfield.
-
1
votes1
answer63
viewsRestrict iOS versions
Is there any way I can restrict iOS versions? Detail: Not the minimum version For example, I developed an app and would like it to run on iOS 7.x. x and iOS 8.1.x. In short, I would like to prevent…
-
1
votes0
answers57
viewsHow to update a framework on iOS
I’m changing an app. This app uses a framework called Ushahidi which is compatible only with iOS7. I detected a change to that one thing in the framework function in the iOS8. My doubt is how I can…
-
1
votes1
answer49
viewsHow to configure Nspredicate to perform filter?
I am implementing a filter, where I need to search the records in Core Data, that have "yes" in certain columns. Table: For example, return the elements that have yes in the columns ATRIBUTO1,…
-
1
votes0
answers73
viewsI am making a post to register ads but he does not find the user_id
I’m creating a post where I can register and save ads from my app to my api. When I click to register it returns the error got 422 however if I put the user id manually and permanently (user_id =…
-
1
votes1
answer734
viewsAPI or framework that searches for remedies in different pharmacies
I need some API or framework that can do a drug search in several Brazilian online pharmacies. This exists?
objective-casked 9 years, 8 months ago Ricardo 51 -
1
votes1
answer75
viewsImplementation in Car class objective-C
I have this code and I would like to know if this way of implementing is valid in objective-C. @interface Carro : NSObject @property (copy, nonatomic) NSUInteger ano; @property (copy, nonatomic)…
-
1
votes1
answer612
viewsHow to add 1 kilometer to a Google Maps coordinate?
How could you add 1 km (or 1,000 m) to a google maps coordinate to determine an area? Example: Radius formed by points A and B: Point A = Latitude:-22.91009, Longetude: -43.107499. Point B =…
-
1
votes1
answer309
viewsHow to get nearby Ceps via Geolocation or GPS on Iphone?
I’m developing an app for delivery, but I’m having trouble getting the automatic zip code through my location. Using the library Corelocation from IOS, until I get the zip code, but only the first 5…
-
1
votes3
answers312
viewsHow to Configure Tab Bar Controller?
I have a Tab Bar Controller with 5 Viewcontrollers connected to it. With this, 5 buttons are displayed on the bar. I would like the Viewcontroller connected to the third button (middle button) to be…
-
1
votes0
answers49
viewsRemove message queue events
How can I prevent my class (Uiview) from receiving a ringtone event when there are still similar events in the message queue?
-
1
votes1
answer54
viewsHow to correctly adjust the image height in a Uitabbaritem?
I set up two images for one tabBarItem. As I couldn’t find a way to change the center of the image, I used the following method to make the image effect go up a few pixels, above the UITabBar:…
-
1
votes1
answer55
viewsProperty getting nil
I’m facing a problem that a property is getting nil unexplained. NSMutableArray * lojas = [[NSMutableArray alloc] init]; for (int x = 0; x < lojaResultado.count; x++) { NSDictionary *…
-
1
votes0
answers150
viewsProblem with navigation between IOS screens
Could someone help me solve a problem, where I use a drop-down menu Swrevealviewcontroller in my IOS project using the language objective-c, in my app I have a Uitabbarcontroller containing 4 tablet…
ios objective-c iphone tabbarcontroller uinavigationcontrollerasked 9 years, 5 months ago Bruno Richart 793 -
1
votes2
answers83
viewsWhy is there a 'Nsinvalidargumentexception' in this code?
I have a class that manages all my database, my project is in Swift but I have two classes in Objective-C to make the "bridge" between the classes and my Helper. After some testing in iOS simulator…
-
1
votes0
answers83
viewsUse Moviedb API for an objective-c application
I am a beginner in Xcode/objective-c. But I need to do a project where the user will do a search for a movie name and through the Moviedb database, the application will return the name and poster of…
-
1
votes1
answer166
viewsTextview IOS Swift - Balloon-shaped design
Hello guys, I would like to know how I do a textView of this in Ios with Swift ? Thanks in advance for your attention.…
-
1
votes1
answer58
viewscall the properties of a Tableviewcell in a Viewcontroller
I’m trying to create a tableview with Cell dynamic according to the text inside it, and I’m trying to add the height of the label to the size of Cell but when I call the label in Viewconrtoller it’s…
-
1
votes2
answers87
viewsHow to make Textview track writing
I need Textview to follow when I write because if this does not happen I end up writing under keyboard, I already gave an up in textview but it is very big and will end up being down anyway. how do…
-
1
votes1
answer356
viewsNo Xcode components in the simulator?
I have a problem with xCode in the Swift. Suddenly you don’t want to appear in the simulator new components that I include in viewController. For example: If I put a simple button on screen, when…
-
1
votes1
answer316
viewsRemove Core Data from an Xcode project
I started an app development using Core Data in the course of the development of the project I have been observing that the Core Data is not the best for the app. Within this scenario, I would like…
-
1
votes2
answers212
viewsClose webView page 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"];…
-
1
votes1
answer124
viewsCustom components
Is there any way to create custom components/screens with some components already loaded? For example, create a UIViewController customized, with some standard elements in it. But in a way that can…
-
1
votes1
answer32
viewsError while compiling code using MP3 lib converter libmp3lame.a
Someone could help me, I’m having a problem running my app on Iphone 6 I use a library to convert audio to mp3 call libmp3lame.a, but I can’t compile, follow the Warning. ld: warning: ignoring file…
-
1
votes1
answer151
viewsUpload photos IOS Swift
I have an application where I need to upload some photos to a server, when I upload a single photo works all right, now if it is two or more photos takes expressive time to complete the operation. I…
-
1
votes0
answers38
viewsIOS - How do app send notifications when closed?
I wonder how I can perform an action, such as a notification for example, with the app closed. Like when you’re not using your phone and get a message notification from Facebook or a game for ex. I…
-
1
votes1
answer92
viewsHow can I do in Xcode the java code mentioned in the question?
This class on Android when enabled, I can close the app that keeps it running and keep Cell’s screen lit this way Keep the screen on: PowerManager pm = (PowerManager)…
-
1
votes2
answers230
viewsIOS - Prevent the keyboard from hiding Text Field?
Whenever I click on Text Field, the keyboard goes up hiding it on the screen, I would like to know a way to make Text Field go up with the keyboard, I tried to use a Scroll View but could not.…
-
1
votes2
answers185
viewsIOS - How to program the navigation between Viewcontroller direct in viewDidLoad?
I want to navigate between the Viewcontroller of an app by clicking a button and switching from one to the other for example. I wanted to run this directly in the viewDidLoad of Viewcontroller1, if…
-
1
votes0
answers39
viewsEasession equivalent code in the Corefoundation framework
I have the following question. Today I connect to external devices using EAAccessoryManager for identification of paired bluetooth devices on the iPad and the EASession to establish a session with…
-
1
votes1
answer24
viewsObjectie-C - How do I get a response from an API when sending a message?
I am 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…