iphone

objective-c : @synchronized how it works ?

Hi, i have two methods -(void) a { @synchronized(self) { // critical section 1 } } -(void) b { @synchronized(self) { // critical section 2 } } now my question is if a thread is in critical section 1. will the critical section 2 be locked for other threads or other threads can access critical section 2. ...

Is it possible to use multiple cell types with in a uitableview?

Hi all, I need to display different type of contents in a single table view. For that i have a table data source containing a number of items For eg: NSArray *objArray=[[NSArray alloc] initwithobjects:@"iTem1",@"iTem2",nil]; The size of this array may change and i need to add one more cell along with the cells corresponding to the arr...

How can we retrieve a particular column values from spread sheet using GData.

Hi all, Will u please tell me , how can we retrieve a particular column values from spread sheet using GData(GoogleData) in iphone applications. ...

priority vise All methods of a (xib,.m) file

Hello, I am beginner in iPhone.I want to know what is the priority of execution of all methods like(viewdidload,viewwillappear,viewdidunload and other remaining...). Please tell me anyone what is actual flow of the execution in iphone application. ...

Apply 3D rotation to iPhone view

I would like apply a 3D rotation on a view (in particular to a UILabel) in iPhone. What's the simplest way to do this? A code example will be much appreciated. ...

First Tap on customcell of uitableview should expand it and second should contract it.

Hi all, In my application I have this requirement that first tap on custom cell of uitableview with a label in it should expand it and second should contract it. I'm able to expand and contract cell and expand label inside cell, but not able to contract the label on second tap. I'm using this function - (void)setSelected:(BOOL)selec...

Question about varrying top margin when using custom Fonts on the iPhone.

I am using FontLabel to display varying lengths of texts in a custom font. I size the FontLabel using the following : CGSize size = [myString sizeWithFont:[UIFont systemFontOfSize:[[[UIApplication sharedApplication] delegate] getFontSize]] constrainedToSize:CGSizeMake(290, 4000) lineBreakMode:UILineBreakModeWordWrap...

What is the best for make charts on iPhone view WebPage?

Hi all, I have to make some charts on a "mobile" website, what is the best framework to do this? I see Google Charts API, JQuery Visualize, Raphael and JS Charts... but i don't know who is the best one in Safari Mobile. Thanks in advance to your response. ...

IPhone OS 4.0 - Beta 3 - setContentURL on MPMoviePlayerViewController crashing the App

Hi Everyone. I had this issue, with the beta2 and I thought the beta3 was going to solve it, but I'm starting to think that I'm doing something wrong. I have a MPMoviePlayerViewController playing a video and when the video ends I'm trying to change the video for another like this: [moviePlayerViewController.moviePlayer setContentURL:ne...

Will location manager finds the current location repetedly after it finds the current location in iphone?

I am new to iphone development.I want to know the working process of the CLLocationManager in determining the current location. I have used the below code for the button event to find the current location. self.locationManager = [[[CLLocationManager alloc] init] autorelease]; self.locationManager.delegate = self; // Tells the location...

Adding another view to a view based application

Hi, I'm developing an iphone apllication that stores some data into a database. That is working fine. But now i have a problem when i want to show the data. Because to show the data i need to design another view. But i'm facing problem when i try to add another view.Is it possible to have multiple view in a view-based application,cause m...

How to linebreak long string constructs ?

I am editing SQLite SQL statements of substantial length. How can I break these into several lines to allow comfortablt editing? const char *sql = "SELECT arguments arguments arguments arguments arguments arguments arguments arguments arguments arguments FROM a, b, WHERE condition condition condition condition condition condition condi...

How do I add two alternating UITableViews to an existing UINavigationController view?

I'm new to iPhone development and I am writing an iPhone app that needs two different table views, which are selectable using a button bar or tab bar. These table views are both the same size, but only cover about two thirds of the screen from the bottom up. The top portion of the screen remains the same when either of these tables is ...

How to view existing data in Core Data?

Well, may be this question is silly, but I couldn't find a way (except programmatically). I built a project (for iPhone OS 3.0) which uses Core Data. The xcdatamodel file shows the schema description, but I want to see the data in tabular form (like the management studio for mssql server or phpmyadmin for mysql). Is there any way (excep...

drawRect:rect how to call this method , I am using to draw a string

-(void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSelectFont(context, "Arial", 24, kCGEncodingFontSpecific); CGContextSetTextPosition(context,80,80); CGContextShowText(context, "hello", 6); //not even this works CGContextShowTextAtPoint(context, 1,1, "hello", 6); } I want to kn ow how to...

Publish to Facebook wall from iPhone application

No Matter what i do, i cannot get a post published to an application page wall (the app being logged into) via an iPhone application. I'm able to log in using FBLoginDialog and then retrieve data to populate a tableview, however when i click a button to publish some test content it doesn't work. Here is the button action: (void)compose...

Courier Tracking Software - GPS - iPhone

Hi Guys, I am developing a delivery management system that aims to allow a dispatcher to monitor where their couriers are around the city and be able to send addresses to the couriers, which would give them directions, etc. I am developing the backend in ASP.Net/MSSQL and am looking for an iPhone app that might give me a head start with...

Can iPad know when your iPhone is close by?

Is there a way to create a background app( once this is available on the iPad ) that can detect when your iPhone is close by? So I'm thinking that it would require the use of bluetooth. I'm thinking you could use this for syncing and such. ...

why drawRect method is not being called?

#import <UIKit/UIKit.h> @interface quartzViewController : UIViewController { IBOutlet UIView *myView; } @end #import "quartzViewController.h" @implementation quartzViewController -(void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSelectFont(context, "Arial", 24, kCGEncoding...

I would like to flip my app's splash screen - how can I mimic the flipside controller's animation?

I've finally gotten a working "alpha" version of my first app installed and (mostly) working on my iPhone 3G. So excited I came into the house and danced a little jig while my wife rolled her eyes at me. Don't care - totally stoked that I figured it out on my own (with lots of help here - thanks again, guys). I've never really dabbled w...