Questions tagged [objective-c-2.0]

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

Objective-C 2.0 is a revision of the Objective-C language created by Apple to include, amongst other things, an enhanced syntax.

177 questions
0
votes
1 answer

Objective-C 2.0 and @interface/@implementation

I have written code such as the following, which by assumption shouldn't compile. I'm assuming that it shouldn't compile because the instance methods are not declared in the interface. Is this necessary, either way what's the logic behind…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
0
votes
1 answer

CoreData. Successfully saving an invalid objects

I have property(as managedObject) in a singleton. This object in property may be updated(removed, then created new object with custom Id, equal with Id of old object), then I save context, nullify the property, fetch new object and assign this to…
Arsynth
  • 761
  • 9
  • 22
0
votes
1 answer

In Objective C, How can we add thumbnails on top of mapAnnotations?

I have set up all my annotations on my Map and I have pins set up all over it. I want to open a little thumbnail that hold information about the pin when you touch that pin. (like title of the street ex.) If there's a tutorial or a developer's page…
0
votes
1 answer

Round Double value in objective c

How to round double value in objective c if the value is 1.66 it show value to 1.55 there is missing a point value which makes a difference if the calculations are higher ? self.priceLabel.text = [NSString stringWithFormat:@"%0.2f",totalPrice]; i…
0
votes
1 answer

UIPickerView subclass, toolbar subview not responding to touches?

I've created a subclass of UIPickerView. In this subclass I've added a UIToolbar as a subview. The toolbar appears the way I specified in my code, however the done button in the toolbar is not recognizing any touch events. What am i doing…
Christian Gossain
  • 5,942
  • 12
  • 53
  • 85
0
votes
1 answer

objective c create dynamic query to pass to sqlite3_prepare_v2

I should create a query to pass to sqlite3_prepare_v2. The query must be dynamic, and must allow me to retrieve all records that, in at least one field, containing at least one of the search filters. For example: -fields are f1, f2 -filters are SF1,…
longy
  • 97
  • 1
  • 10
0
votes
2 answers

Why is my segmented control not showing in my view?

My segmented control in the xib view doesn't show up when I run the application. Please help me! m File - (IBAction) segmentedControlIndexChanged{ switch (self.segmentedControl.selectedSegmentIndex) { case 0: self.carImage.image =…
Jovany
  • 1
  • 1
0
votes
1 answer

How to add an introduction image before iPhone application starts?

How do you add a static image (.png) as soon as the iPhone application starts before loading the content of the application. In other words, I want an introduction image. I can't figure out the code required to do this. Thanks in advance!
Jovany
  • 1
  • 1
0
votes
0 answers

Unable to Zip ios (objective c )SQLite Database file After Encrypting With SQLCipher

I have to zipped an encrypted file by using many zipped pod file like ZipArchive ,SSZipArchive etc.The simple sqlite file has been zipped by using ZipArchive but the file that is encrypted using SQLCipher has not been zipped i dont know why can…
0
votes
2 answers

Correct way to pass NSError from URLSession

I have Network layer class, which has method with URL request. Seems like this: - (void)networkRequestWithError:(NSError *__strong *)responseError andCompletion:(void (^)(NSData*))completion { NSURL *url = ... …
0
votes
1 answer

Accessing an array by index passed by function call

I have written a specific init-override-function where i want to pass an index number to be called in an array. The index number itself is defined by selecting a tablerow in a tableview by the user. So.. the rownumber that is selected shall be…
konturgestaltung
  • 467
  • 6
  • 19
0
votes
1 answer

how to convert a utf8 format nsstring to a regular nsstring?

i have a question that i get a NSString(maybe i called it astring) form a stream server when i print this astring ,shows\u5f20\u9510\u7b49\u540c\u5fd7\u4efb in console. It's a NSString(astring) that can be printed…
ben
  • 1,020
  • 1
  • 15
  • 27
0
votes
1 answer

Filling a NSComboBox with data generated in foreign-class-array

after my last question, regarding accessing an array from a different class, I ran into an new problem, that's giving me a headache for three days now. Everytime I think I have the correct solution approach, I fail. Well... I don't have many…
0
votes
1 answer

asihttp using a POST method and post nsMutabledata to a uri,why i can not get the asi delegate callback?

guys! when i using asihttp in my app,i meant a post method with a nsmutabledata for body stream,but i can't get what should be,just couldn't callback the - (void)requestFinished:(ASIHTTPRequest *)request; or - (void)request:(ASIHTTPRequest…
ben
  • 1,020
  • 1
  • 15
  • 27
0
votes
1 answer

how to send the values in body when I call the asynchronous post request

I am trying to do a task which I am completely not aware of, that is video uploading to server in objective c. I am a beginner and I was using swift, but now my requirement is in objective c. Here I have to send an asynchronous request using…
mounika
  • 11
  • 3