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

Proper template for my iOS App

I am building an iOS app, where I am doing a condition check for existance for a particular data. Please find the code I am using for Android,This condition check is done inside SplashScreenActivty if(data.exists()) { startActivity(new…
onkar
  • 109
  • 1
  • 2
  • 11
0
votes
0 answers

Cocos2d - remove opengl drawing without clearing the render texture

I trying to achieve something like the spotlight demo here: http://www.supersuraccoon-cocos2d.com/2011/09/09/spot-light-demo/ I managed to add several spotlights to the render texture, but I still have a question, How can I remove only one spotlight…
mim
  • 199
  • 1
  • 3
  • 10
0
votes
1 answer

How can I make UIAlertView modal?

I want to show a login dialogue and login error dialogue if necessary. I use UIAlertView to show these dialogues, but the process keep running while showing the UIAlertView. I wrote a code below. Now NSUserDefaults doesn't keep those value, so I…
Masaru Kitajima
  • 267
  • 1
  • 4
  • 12
0
votes
1 answer

Optimizing unresponsive (Core Data) app for OSX

having real problems with a very unresponsive (OSX) app. When using about 3K (Core Data) objects, the app freezes during startup and save, and when adding new managed objects. When I dig into the call tree, using (Instruments) Time Profiler, most of…
Fnord23
  • 325
  • 2
  • 18
0
votes
1 answer

I need to return multiple strings from a class

I have code in which the class in question gets data from a server, and parses it with the result being two strings. I need to return the two NSStrings but most tries have had issues because of the NSString type. Any suggestions? Thank you!
0
votes
1 answer

Why heightForHeaderInSection doesn't work in iOS 4.3?

Why heightForHeaderInSection and heightForFooterInSection doesn't work in iOS 4.3 and it works in 5.0? -(CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section { if (section == 0) { return 10.0; …
keep on you
  • 310
  • 6
  • 21
-1
votes
1 answer

What does -(XYPoint *) origin; mean

I am new to Objective-C and I am working hard to understand how it works. I get the basic idea with pointers, but this thing has me stumped: -(XYPoint *) origin; What does it mean when they add the * after the Class name inside of…
forrest
  • 10,570
  • 25
  • 70
  • 132
-1
votes
1 answer

What is the correct way to call IBAction from different controller?

It's about objective c and cocoa I've faced a problem and don't know how to solve it. Hope I can find answer here and it will be helpful for some other programmers. So, I have a simple window with 4 elements: NSTextField - first field to set value…
Manifestor
  • 575
  • 5
  • 19
-1
votes
1 answer

Take photo from camera with date like digital camera in iOS

Need to take photo from the application with date and time the photo has been taken to be displayed in photo just like digital camera.
-2
votes
2 answers

How to put a C primitive type in an NSArray?

I am trying create an NSArray which holds the datatype of serialized files i will be loading from disk. It can say double, int, or some custom type, and then I will need to load those files and cast them to double/int/custom type. Is there a way I…
sramij
  • 4,775
  • 5
  • 33
  • 55
-3
votes
3 answers

How to add number of rows in section dynamically in tableview?

Note for the person who downvoted: This question was closed so many days back . If anyone find which is not necessary please leave a comment I have some textfield values & uiimage stored in one view controller. I have tableview in another view…
Uma Madhavi
  • 4,851
  • 5
  • 38
  • 73
-5
votes
1 answer

Move the object in the array

How to move objects in this array? Tried everything. I cannot select an individual object. self.images = [NSMutableArray array]; NSFileManager* manager = [NSFileManager new]; NSBundle* bundle = [NSBundle mainBundle]; NSDirectoryEnumerator*…
1 2 3
11
12