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.
...
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...
Hi all,
Will u please tell me , how can we retrieve a particular column values from spread sheet using GData(GoogleData) in iphone applications.
...
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.
...
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.
...
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...
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...
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.
...
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...
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...
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...
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...
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 ...
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...
-(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...
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...
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...
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.
...
#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'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...