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
-
2
votes1
answer127
viewsiOS 7 - Tabelview editable
I’m trying to create a Tableview with the same actions (Add/Edit/Delete Rows) of the native app (Phone) as shown below, but I’m not getting it. I would like to create a field "(+) add item" (which…
-
2
votes2
answers181
viewsCall a new IOS class
I’m new in IOS environment and after studying a little how the language works, I did not understand how I can call a window/ class and overlap the current window as I do on android. Intent intent =…
-
2
votes2
answers100
viewsHow to know if a Nsarray is empty (or void) using IF
I need to know if a Nsarray is empty or void using an if. Code: NSArray* array; if( array == nil) { // Fazer algo }
-
2
votes2
answers208
viewsDisplay different screens dynamically using Uitableview
Good guys, I’ll explain what I need to do. I need to create a table, where each row played, will have to show a screen (Actually, a standard skeleton) and fill this new screen with the data relating…
-
2
votes0
answers107
viewsTrying to login with Facebook and returns Fberrorcategoryusercancelled
Facebook Login on iOS works in 3 ways: Try logging in via native iOS login if the user has this option configured; Try logging in through the Facebook app if it is installed; Open the Facebook site…
-
2
votes1
answer456
viewsSplash screen on Ios
What’s the easiest way to make a splash screen on Ios? I always see different tutorials, and I can’t. I just want to upload an image for 3 seconds before entering my application
-
2
votes2
answers103
viewsHow to customize Uialertview?
Setting: Change colors, and buttons UIAlertView. How to use images to make this customization. For example: Add image in the background, and change the color of the locked screen behind the alert.…
-
2
votes1
answer51
viewsImporting an objc control into Swift: Error when putting an action (func) of my contole
I decided to make an app in Swift this time, and as usual I use my custom control (Menuview). In objc I know how it works and everything worked, in Swift I followed all the steps, import in…
-
2
votes2
answers83
viewsHow to use/maintain obsolete methods for older versions of iOS?
I’m developing an app for different summers from iOS, in this case for iOS 7 and iOS 8. I’m trying to create the Push Notification service, but the methods to register the app and others, are…
-
2
votes2
answers6761
viewsMask for Uitextfield
How to apply mask on a UITextField? I found some ways to apply a mask on a UITextField, but it did not seem to me something very correct to do. It can be an example of telephone mask, very simple.…
-
2
votes1
answer375
viewsBest data persistence practice
When it comes to persisting the data with the Core Data. What is the best way to persist the data? For example: I own an object Pessoa (subclass of NSObject). And at the time of persistence I…
-
2
votes1
answer136
viewsYoutube videos on app
How to embed a video from my Youtube to an app in iOS? Follow this guide of Youtube Developers, but the video does not appear on the screen. Man code is like this: Firstviewcontroller. h // //…
-
2
votes1
answer140
viewsOutlets in Xcode 6 (Universal Application)
I have a problem/doubts. Until today due to some needs I developed only for iPhone or iPad separately, but today I’m starting in the development of universal application, iPhone and iPad. I’m using…
-
2
votes1
answer64
viewsColors in images
I have an image and would like to take the predominant color of this image. For example: I have this image:…
-
2
votes1
answer521
viewsHow to maintain a real-time sync?
I’m working on an app, and I’ve got the database processed. But a question arose of how I can create a real-time synchronization system of the app’s local database with the remote server database.…
-
2
votes1
answer374
viewsHow to group Markers in Google Maps iOS API?
How can I group the markers of an area when the user zooms the map, to reduce the visual pollution of Marker’s on the map and show only one Marker, with a number inside to indicate the amount of…
-
2
votes1
answer103
viewsMotion sensor
How do I identify the rotational motion of the iPhone on its own axis (same rotation as a spinning top)? I was able to identify practically all possible rotations and I couldn’t identify this one,…
-
2
votes1
answer101
viewsHow to add an object at a random position of a Nsmutablearray?
I am creating an array with the following capacity 15 this way: meuArray = [[NSMutableArray alloc] initWithCapacity:15]; But when I try to insert an object initially at position 10 in this way:…
objective-casked 9 years, 10 months ago Tiago Amaral 1,520 -
2
votes1
answer32
viewsDo not insert repeated Annotations into the map
I’m inserting some Annotations q are coming from a server JSON, but I wanted to check if the Annotation is already on the map, if yes, does not add it again. For they are being added over each…
-
2
votes3
answers1854
viewsHow to return points within lightning?
I am developing an app where I would need to return points (Lat, Long) in a radius of size X (Km) from the user’s location (Lat, Long). I’ve devised the following logic: Get current user location…
-
2
votes2
answers371
viewsSwift Multi Selection Problem Uitableview
I have a tableView that when it is in "Edit" mode I can select each item and take an action, for example remove the selected items. When I select the items, the first ones are left without "Line…
-
2
votes1
answer72
viewsTransaction/Commit on Core Data, is it possible?
There is the concept of Transaction and Commit in Core Data? I have a database in the app that is fed by an external file, but it is a lot of data and the application takes around 2 minutes to…
-
2
votes2
answers194
viewsHow to make Uitextfield track keyboard level when typing
I have a little problem, I created an app that has a form where has 6 Uitextfield, but I have a problem running the app on an Iphone4 keyboard overlaps some Uitextfield and I can’t see the text I’m…
-
2
votes2
answers213
viewswebView on iOS is not accessing some websites
I’m trying to develop an iOS app using the objective-c language. But I have a domain .metaweb that I need it to access is not loading. I noticed that some sites like for example facebook,…
-
2
votes0
answers150
viewsReal-time monitoring using GPS
I am creating an app for a pizzeria in which the customer can see the location of the motoboy who will deliver his pizza in real time, but a question arose, I would like to know how to send my…
-
2
votes2
answers366
viewsStart screen in storyboard
I’m using Xcode for app development. In it I use the storyboard for the canvases. Suppose the structure of canvases is as follows: I have 5 sequential screens, which one leads to the next, until…
-
2
votes0
answers105
viewsWeb Server TLS/SSL Handshake
I am developing an objetive-c webserver for Iphone and implemented TLS/SSL for encrypted communication with a Certificate self Sign, presented in the attached links below. I’ve been testing the…
-
2
votes1
answer74
viewsIOS - How to create Custom Cell for Tableview?
I want to make a custom cell for my Tableview. But it is presenting problems that I am not able to solve. It worked normally when I did with the standard cell, but when I did custom gave problem I…
objective-c mobile xcode uitableview uitableviewcellasked 8 years, 11 months ago CristianCotrena 1,145 -
2
votes1
answer79
viewsTableview, delete cell but not section
I have a View table where I would like to delete the cells from the sections and if it is the last one, instead of deleting the section as well, I would like you to add a new cell with a new string:…
-
2
votes0
answers59
viewsObjective C - How do I direct the user to appleStore to update your APP
My code checks if there is a new app update but when there is one, ñ know how to direct it to the Appstore to perform the download. I rode something like this: And by clicking Update, we direct the…
-
2
votes1
answer31
viewsAllow interactivity in Uiscroolview and prevent interaction with content within it while scrolling
Is there any way to prevent user interaction with content within a Uiscrollview? I have a Scrollview the contains Uiviews inside it. In these Uiviews contains only one object, Uiimage. UIScroolView…
-
1
votes1
answer218
viewsHow to add button on numeric Keyboard in iOS
I’m developing an app that on one of the screen there are only two UITextField, an alphanumeric and a numeric. Here comes my problem, Keyboard alpha has the Return/next button, but Keyboard numeric…
-
1
votes2
answers225
viewsNumeric keyboard on IOS
I’m starting to program and I have some questions from Noob :) I wanted to know how I do in a Uitextfield automatically raise the number pad? I tried to use keyboardType but I don’t know exactly how…
objective-casked 10 years, 10 months ago bdebor24 13 -
1
votes1
answer206
viewsRecording Plist on Device
I’m having trouble recording a Plist in my app. When I test the simulator it works normally, but the device does not save my changes. I saw on some websites that I have to create my plist in an…
-
1
votes1
answer564
viewsIs there an easier way to textfield phone?
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ int length = [self…
objective-casked 10 years, 10 months ago Lucas Farah 113 -
1
votes1
answer236
viewsFiltering content from Tableview
I have a Property List, with the following structure with a total of 616 records. (Aspirin and Dipirona are examples) I need to insert only the product name in a table and have the option to filter…
-
1
votes2
answers154
viewsCreating an Array with the Keys of a Dictionary
I have a Dictionary as image below and would like to play Dictionary medicines keys names for an array, as I can perform so function…
-
1
votes1
answer60
viewsHow to implement Google Analytics Gaitrackedviewcontroller for iOS together with Uitableviewcontroller <Nsxmlparserdelegate>?
How to insert the Google Analytics Gaitrackedviewcontroller into the code below without removing the Uitableviewcontroller from this line? @interface STNavigationViewController:UITableViewController…
-
1
votes1
answer107
viewsHow do I use addObject within an Array?
I have a Nsmutablearray *arrayFavoritos In the log I can see { name1 = 6; name2 = "Paolo Rossi\nIt\U00e1lia"; name3 = "cartaz-1982.jpg"; photo = "copa8.jpg"; name4 = 24; }, { name1 = 6; name2 =…
-
1
votes1
answer516
viewsHow to pass data(string) from a class to Viewcontroller’s Textfield
I want to pass data of a class of the type NSObject to be shown in my TextField Viewcontroller. I tried to use the function prepareForSegue but I couldn’t. Does anyone know how to pass the data,…
-
1
votes1
answer72
viewsFilter with Nspredicate with inheritance
I have a structure in Core Data thus: Cliente --- id = inteiro --- dados = Pessoa Pessoa --- nome = string PessoaFisica < Pessoa --- cpf = string PessoaJuridica < Pessoa --- cnpj = string How…
-
1
votes1
answer72
viewsObjective c Basico, setName error EXEC_BAD_ACESS
Good people when entering the setName of my class happens EXEC_BAD_ACESS error below goes the code: Registration Class // // Registro.h // Agenda // // Created by Renan Vicente de Farias on…
-
1
votes1
answer148
viewsKeep object alive in memory for another class
Hello! I have a very simple doubt, because I have already found a solution for it, but it still seems problematic. I will explain: I created a connection with web service to receive some data, and…
-
1
votes1
answer57
viewsCore Plot - Initial zoom for bar graph
How do I set the initial zoom based on the maximum value of the X axis and the Y axis? Example: Chart 1: Maximum Values: X = 100; Y = 110; Graph 2: Maximum Values: X = 180; Y = 230; I need the…
-
1
votes1
answer77
viewsUse modal to display a static Uitableview
Hello! I am trying to show a static Uitableview using modal transition. But when I click on the button it shows nothing. I tested for another view and it worked properly. But when it is performed…
-
1
votes1
answer602
viewsMask for CNPJ in Objective C
I’m trying to put a mask on a string that’s a CNPJ. I get a string with size 14 and tried this way to put the mask: NSString *cnpj = [NSString stringWithFormat:@"%@.%@.%@/%@-%@", self.codCnpj…
-
1
votes1
answer232
viewsReading file in Objective C
I’m trying to read a file on. c, I can read everything right there but in the variable it returns me a whole content and a " n" that harms the rest of my code. Below is the section that performs the…
-
1
votes1
answer79
viewsDetermine content to fill Uitableview based on a Uibutton tag
I will explain the scenario to be as clear as possible to understand the question: On the main screen of my app I have 4 UIButton and each of them will open a different screen containing each its…
-
1
votes1
answer134
viewsShow images with Cover Flow effect in Objective-C
I am looking for a library that allows to show images with Cover Flow effect. But I’ve seen that the libraries that people have used are "third parties". I wonder if there’s a native Objective-C…
-
1
votes2
answers344
viewsHow to change image in Uiimageview equal to Photo Gallery?
Setting: Load some images into one NSArray and show them in a UIImageView as it is done in the photo gallery. But without the edit options. Just view and switch to the side using Swipe. I made a…