objective-c

How do I parse an NSString containing XML in Objective-C?

In my iPhone application, I have the following NSString: NSString *myxml=@"<students> <student><name>Raju</name><age>25</age><address>abcd</address> </student></students>"; How would I parse the XML content of this string? ...

Is there a way to remove the separator line from a UITableView?

Hi, I'm looking for a way to completely remove the separator line in a UITableView when in the plain mode. This is done automatically in grouped, but this also changes the dimensions of the table in a way that is hard to measure. I have set the seperator line color to colorClear. But this does not completely solve the problem. As I am t...

how to flip view with an application with tabbarcontroller and navigation controller

i have a application like this from the first view when i click on a cell i loaded a new view using pushviewcontroller method now i want to flip that view with another view and vice versa. also when i click on the cell i want to hide the tab bar.but unable to do this. here is the link from where i created my views. http://www.iphonemusin...

Can I hook into UISearchBar's Clear Button?

Hey guys, I've got a UISearchBar in my interface and I want to customise the behaviour of the the small clear button that appears in the search bar after some text has been entered (it's a small grey circle with a cross in it, appears on the right side of the search field). Basically, I want it to not only clear the text of the search ...

Threading in Objective-C

is there Thread in Objective c. if there how it is declare and use. if anybody know using multithreading in Objective -c ..pls share with me .. thanks and regards .. by raju.. ...

Why is SQLite not incrementing my primary key?

Here is my table, sqlStmt = [ [ NSString stringWithFormat:@"Create Table %@ (recordNo INTEGER PRIMARY KEY AUTOINCREMENT, noOfPlayer INTEGER, smallBlindAmt INTEGER, bigBlindAmt INTEGER , startingChips INTEGER, roundTimer INTEGER) " , SETTINGS_TABLE ] StringUsingEncoding:NSUTF8StringEncoding ] ; insert query, sqlStmt = [ [ NSString ...

Remove character from NSString in iPhone programming?

NSString *myString = @"A B C D E F G"; I want to remove the spaces, and get a string out like "ABCDEFG". Please help me... Thanks and regards ...

Objective-c: NSString to enum

So, I've got this definition: typedef enum { red = 1, blue = 2, white = 3 } car_colors; Then, I've got a variable of type car_colors: car_colors myCar; The question is, I receive the color of the car in a NSString. It must be a NSString, I can't change that. How can I convert from NSString to car_colors type? NSString ...

How to make a UIView subview NOT scroll.

I have a subview over my UITable that is used as a "busy view". It holds an activity indicator and labels. I call it when the program is going to download a photo that is indexed in the cell. All that works fine but the problem is that when I'm scrolling down the UITable and then click on a cell and the "busy view" gets added it will sho...

Objective-C vs C++

At the risk of this turning info flame bait, my curiosity has gotten the better of me yet again and I have to ask what I feel to be a very compelling question. Is there any hard data comparing Objective-C to C++, specifically on the iPhone but maybe just on the Mac desktop, for performance of various similar language aspects? I am very...

What is the best place to learn Iphone development with Xcode and objective-C basics?

When I say best place, I mean a physical courses, seminars, workshops, etc... It could be all around the world Thanks! ...

Query available storage on iphone

Is it possible to determine how much free storage is left on the iphone using the iphone sdk? I'd like to adapt the cache size depending on how much space is actually left. ...

Creating object named after the value of an NSString - is it possible?

Is it possible to create an object named after an NSString's value? If so, how? ...

Need help in understanding objective c code

I need some help in understanding the following code: What is the meaning of '@' in @"Reload" button = MakeTestButton(&button_rect, @"Reload", content); [button setTarget:web_view]; [button setAction:@selector(reload:)]; Where I can find the definition of "@selector(reload:)"? ...

best way to start learning Cococa in iPhone or OSX, espeicaly getting the big picture

Hi all, So I started my iPhone programming and have just uploaded my first game to the app store. However, I took the C++ & OpenGL & openFrameworks route, hence I am still entirely a newbie to the Cococa, Objective-C and the "authentic" Apple developer world. Right now I am learning through Beginning iPhone Development by Dav Mark, Jef...

How to learn C and Objective-C

Hi, I am learning programming. I plan on learning C and Objective-C this summer. I bought the C for Dummies book but it is a complete waste of time. It's way to many pages! Are there any good books I should read? Or should I just learn C from websites? What would be the fastest way because I really want to learn it fast and start learnin...

Is Objective C A Suitable Language For 3D Games?

I see a lot of debate going back and forth on which language to use to develop real-time 3D games, and the general consensus is that C or C++ are the only languages that can offer suitable performance for high-end, system-intensive 3D games. I see a lot of people saying C#, Java or Python are too slow, particularly because of garbage col...

Tips and Tricks for making beautiful designed views on the iPhone / Objective-C

What programming tips / tricks have you learned for styling views on the iPhone? As an example, you can set the background color of a view to an image: [myView setBackgroundColor:[UIColor colorWithPatternImage: [UIImage imageNamed:@"view-background.png"]]]; ...

Search Open Directory (LDAP) With Objective-C

Does anyone have any sample code in objective-c for connecting to an external Open Directory server and searching a specific node like /Users/? I looked through the OD guide on Apple and I couldn't figure it out. Thanks! ...

how to dynamically update UIlabel text in two UIViews Same Time?

hello all, i have two uiview's named question and answer. the question view is loaded from a cell's click. on the question view i have two iboutlet buttons named "view answer" and "next" when i click on button named "answer" the answerview loaded. both uiviews have one label.now i want to display a question when the first time question v...