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
answer263
viewsSet invisible button after running Uitableview
I have a question in my Uitableview, I put a button on the Cell of a Tableview. cell.btnDownload.tag = indexPath.row; [cell.btnDownload addTarget:self action:@selector(btnDownloadClick:)…
-
1
votes1
answer711
viewsCommand to comment multiple lines in the Xcode?
Hello Is there a shortcut for commenting multiple lines in the Xcode? I mean, I use it today /*...*/, but I have to go to the beginning of the block to mark the beginning and do the same until the…
-
1
votes1
answer142
viewsModule Compiled with Swift 3.0.2 cannot be Imported in Swift 3.1
When creating a project and installing the cocoapods and the still, when running it only gives this error and not build in the project, even empty only importing the still Module Compiled with Swift…
-
1
votes0
answers16
viewsWhy does the webview front in Objective-C behave differently than the Safari browser in ipad?
Is there any way to make both compatible in the view. IOS version: 9.3.5 iPad 3: model A1416
-
1
votes1
answer67
viewsWhat 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 issues below: - performance - compatibility - usability…
-
1
votes0
answers23
viewsBetter Solution for holding app Finish after all UI tests finished
I’ve been Working with iOS UI tests in the Past few few Weeks and Besides of KIF I’ve been using Fastlane as CI to check my code style and do other some Stuff like Releasing to Fabric and…
-
1
votes0
answers31
viewsUikit/Uikit. h not found on Facebook Notification SDK (Fbnotification)
Im trying Compile my project, but after a long time without open it, i Started get an error about Fbnotification SDK. The message is: In file included from…
-
1
votes2
answers84
viewsNative iOS development
I have a question regarding the languages available for native development. I heard on a podcast that there are still applications that maintenance is done in objective-c. Would it be good to learn…
-
0
votes2
answers500
viewsAPNS Certificate Generated After Publication
I wonder if in case I generate my apns Certificate after publishing the app, I have to publish a new version. The app in case already has the necessary code to receive push notification.…
-
0
votes1
answer150
viewsRmdateselectionviewcontroller with Uitextfield
I want to put the component RMDateSelectionViewController in my project. I want it to appear when the user touches UITextField. But I’m not getting it, I followed the example code and it didn’t…
-
0
votes1
answer45
viewsChange the click trigger of a Uisegmentedcontrol inside a Uiscrollview
I need to change the drive of a UISegmentedControl, because I have a form, with several UISegmentedControl, contained in a UIScrollView and when I roll playing on top of a UISegmentedControl it…
-
0
votes2
answers173
viewsFormatting String in a Textview from data from an Array in Parse
I’m making an application to register students from a school using Tabbar, and one of the Tabs is the Query Tab. In this tab, I have a search field, where the user must enter the student’s name and…
-
0
votes1
answer72
viewsObjective-C syntax error
I’m a beginner in language Objective C and I was practicing, when I got some errors, follow the code: @interface Pessoas: NSObject { int idade; int peso; } -(void) imprimir; -(void) setIdade: (int)…
objective-casked 10 years, 9 months ago Lucas Castellani 51 -
0
votes2
answers526
viewsProblem with Nsdate
I have an Imobject class, in it I have an Nsdate *Startdate field. I fill this field with a database return: (IMMutableArrayIMTable*)[databaseTemp retrieve: @"select * from table" withParams:nil…
-
0
votes1
answer46
viewshow to access via callout Bubble on a descriptive map on a tableView
I am a student and I am developing an IOS app where the user is provided with a map with some marked places (pin) where the name of the place appears in the callout.(through a JSON file) Through a…
-
0
votes1
answer468
viewsUsing an object in different methods in Objective C
I’m trying to work with objects in iOS Objective C, and I had a question about using. I created a file called carro.h #import <Foundation/Foundation.h> @interface carro : NSObject { NSString…
-
0
votes1
answer140
viewsSQLITE INSERT problem when app starts
I’m performing a Insert in my Sqlite, however, I’m getting! The Nslog returns : 2014-06-01 23:15:35.664 goTask[25379:60b] open Bank: Bank opened successfully 2014-06-01 23:15:35.666…
-
0
votes1
answer78
viewsprepareForSegue shows no action on the button
I am relatively new to programming and I have come across an issue that is completely beyond me. Then I have a menu with 6 Uibutton set as Iboutlet in my viewcontroller. Each of these Uibutton calls…
objective-casked 10 years, 7 months ago user11473 1 -
0
votes2
answers227
viewsSplash screen while receiving web service data
Hello! I have a following problem: I need a splash screen that stays on the screen while the app receives the data from the web service to popular a BD sqlite on iPhone. I tried to use the Xcode…
-
0
votes1
answer320
viewsSaving image data from json/web-service to sqlite on iphone
Hi! I wonder if Voce can help me, I’m trying to save an image in a sqlite bank, on iphone. But I’m not getting it. Briefly explaining how it works... The app connects to the server and receives the…
-
0
votes2
answers194
viewsCall another screen after a few seconds without user interaction
I need to put in my app the following behavior: After a few seconds without the user touching the screen, for example 10 seconds, the app presents another screen showing an image. And when the user…
-
0
votes2
answers171
viewsMake arc4random() not repeat last number
I created a app to generate random numbers. Only I wanted him not to repeat the last number he showed. Example: the result was 9 (run the method that generates the random number again) the result…
-
0
votes1
answer82
viewsDesigner Pattern for Objective-C
Guys, someone knows a good book, booklet, or blog that explains well about Designer Pattern, specialized in Objective-C/iOS, with good examples and updated?
-
0
votes1
answer63
viewsPing with Objective-C
Does anyone have a ping test class in Objective-C? I tried several and could not with any. I just need to take the IP and do the test, if "drip" perform the action, against, just send an…
-
0
votes1
answer82
viewsJSON API cache in Xcode
I want to cache my Wordpress JSON API in my app. I want a cache of tableview cells and UIWebView for when in airplane mode or off or with bad signal, the user can still see. I tried to cache with…
-
0
votes2
answers51
viewsOptimize Nspredicate with Magicalrecord
First of all follow my model: Classes: @interface MMEAlbum : NSManagedObject ... outras propriedades @property (nonatomic, retain) NSNumber *album_upcoming; @property (nonatomic, retain) NSSet…
-
0
votes1
answer63
viewsRestkit performance with Afnetworking
I built a restserver using the Slim Framework (PHP), connecting in a Mysql BD. Is on a dedicated server and moderate performance, IE the response is very fast. But I made a test app on IOS where I…
-
0
votes1
answer81
viewsindexPath does not match the content in tableView
I’m carrying a tableView from a array laden with arrays, this whole charging process is working perfectly, however, when I update the tableView (reloadData) with the same information and I have the…
-
0
votes1
answer66
viewsUsing Uiinterfaceorientation to change screen
I need to know how to change the iPhone screen when it’s rotated (From Portrait to Landscape). For example, when he is in Portrait mode he presents Screen A, when he is in Left Landscape he presents…
-
0
votes1
answer39
viewsSave new cell position after reordered and affect model (datasource)
I need to implement a tableview, where I can reorder the position of the cells and save them in the new order. And this new order should affect the order they are saved also the model (in this case…
-
0
votes1
answer71
viewsOpen HTML with link using Nsattributedstring
I get from the server an HTML similar to this: "<br>Dummy text<br>Click <a href="www.google.com">Here</a>" On Click Here it should be possible to click and open in Safari. I…
-
0
votes2
answers416
viewsWebview on Ios goes blank
Hello I’m starting to program for Ios, and I’m not being able to run a webview, always goes blank, see the code : -(void)viewDidLoad { [super viewDidLoad]; NSString *fullURL =…
-
0
votes1
answer67
viewsHow can the current Uiviewcontroller know which "Called" button?
I have a doubt and the scenario of the question is as follows: I am on the main screen of my app and have 2 buttons (UIButton), each takes to another screen. After the user has chosen a button and…
-
0
votes1
answer50
viewsHow do I show a Uialertview when a link is triggered in Uitextfield?
Scenario of the problem: There is a link in a UITextView, when this link is triggered it should open a web page. This part is already working. But I need to show a UIAlertView asking if you really…
-
0
votes1
answer281
viewsHow to cache an image from the application and display it later?
I was assigned to before starting the app to display promotional images. Images are obtained through JSON, which also has a display time setting. I am using the following code to store the image…
-
0
votes1
answer89
viewsLoad Uiviewcontroller
I have a Uiviewcontroller with the black Background where would be my main Uiviewcontroller (where is the menu and etc) and I do this: CredenciaisViewController *obj = [self.storyboard…
-
0
votes1
answer407
viewsHow to add characters to a native iOS keyboard type?
Scenario: On an app screen, the user must inform a data type that is only numbers to perform a search. To avoid using text, I set up a keyboard for the type: Number Pad. But I need other characters…
-
0
votes3
answers408
viewsXcode does not create storyboard
Someone knows why my Xcode when creating a single view Aplication, it does not create the storyboard, I’m starting now and in class the screen iphone app is made there, but in my appears only a main…
-
0
votes1
answer178
viewsHow to send and receive data to BD Mysql using PHP in Objective-C?
Scenario: Send and receive forms to a Mysql database using PHP. I wonder if anyone knows or has any link to a didactic and clear tutorial about these procedures, sending and receiving using JSON.…
-
0
votes1
answer44
viewsMapkit - Is there any way to locate friends within this tool?
I already use mapkit for development on iOS, but I wonder if anyone knows how in the code to add friends, show on the map other people nearby. PS. or even an example code for this function, thank…
-
0
votes1
answer433
viewsHow to find coordinates in Apple maps?
I need to show several different places on the map, one for each location, I would like to know how to point to each coordinate through the code? In case the app is for iOS, using Objective-C.…
-
0
votes2
answers93
viewsAdapting iOS 7 Code to iOS 8
Currently I am with the iOS 7 library and I intend to update my library to iOS 8. I would like to know what will be the impact of this update on the projects I already own. I’ll be able to support…
-
0
votes1
answer51
viewsTransform Uiimage into Byte Array
I need to transform an image into an array of bytes, as I do to transform this image into an Array Bytes?
-
0
votes1
answer113
viewsHow do you request Core Data to get only one attribute?
I just need to get an attribute from a single row of the table: name | id | idade | aprov|repro| sala | _______|______|________|______|_____|______| John | 32 | 15 | A | | 155 | Following the table…
-
0
votes1
answer35
viewsNsstring to Nsdictionary conversion always null
I am converting Nsstring to Nsdictionary but when I step inside a variable always returns null. what I am doing: NSDictionary *json = [NSJSONSerialization JSONObjectWithData: [body…
-
0
votes1
answer88
viewsHow to define my Primary Key?
I am developing an application in Swift and started using the Core Data recently. I need to define which attribute of my entity will be mine Primary key. For example: I have an entity that has class…
-
0
votes0
answers64
viewsMenu Slider programmatically
I’m creating a menu programmatically, I instate the menu in my home and when I click the button that will pull the menu, the menu appears but I can’t interact, I can’t click the cells, who is with…
-
0
votes2
answers244
viewsHow to make a Uitableviewcell work like Facebook Messenger for iOS?
How to create a UITableView, where cells keep the text bold until touched, and save this change? For example, when we receive a message on Facebook the text on UITableViewCell is in bold, after…
-
0
votes0
answers155
viewsHow to adjust splash using Constraints in Xcode 6?
In Xcode 6 comes a file format . xib that serves as the default splash screen of the App. I inserted an image using Uiimageview and a text using Uilabel but the position of the image and the label…
-
0
votes1
answer51
viewsDeleted object being returned in a Core Data fetch
I have a "small" problem when using Core Data. This is my architecture: Synchronizer -> Syncservice -> Persistenceservice -> Nsmanagedobject All classes in the Persistenceservice layer…