Hi
I am trying to determine if an object is valid. The program has (at least) two threads and one of the threads might invalidate the object by removing it from an NSMutableArray. I need the other thread to check either its existence or validity before acting on it.
...
I'm trying to call Calendar from my simple application in iPhone. all sample out there give me a clue to use UIApplication#openURL function. How about if i want to open a calendar with/without a new event?
'[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];'
...
I'm trying to localize a UIDatePicker. Apple's docs say that it should autodetect the current locale, yet the language stays the same, no matter what language I select. What do I have to do?
...
I would like to get feedback from all you seasoned developers as to what methodology would be the more "correct" or "efficient" way of implementing my solution.
I have a 4.5 MB flat file that is some 16,000 rows with 13 columns. I know I can import this into SQLite and create my data model but would it be more iPhone efficient to use th...
Is there a way to determine where in the cell was tapped?
I am currently using tableView:didSelectRowAtIndexPath but this only tells me that the cell was selected.
...
Ok so i am realllly new to the iphone development and i've gotten pretty far for my knowledge. I just need help deciding how to program these 4-6 pictures into my project.
I basically want to make a comic book with the user being able to swipe from one picture to another. Should all these picture be in UIVIEW or UIViewController?
and...
I want to save my data into a text file when the user presses the home button.
How to do so?
...
The run loop for the secondary thread of my application is below.
It has a nested control loops.
The outer loop runs for the duration of the application
The inner loop runs while one view is open, then the thread waits while the view is not open.
Passes through the inner loop are short, a fraction of a second.
My code does not knowin...
I have a program with a location manager set up like this:
self.locationManager = [[CLLocationManager alloc] init];
[locationManager startUpdatingLocation];
locationManager.delegate = self;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;
I need the accurac...
Hi, I'm relatively new to objective-c...I'm using the iphone 3.0 SDK
I have a UIView, which is a subview, that I want to resize under certain circumstances.
The way I do it is within a controller class.
for example,
CGSize el = CGSizeMake(30, 40);
[self.subview setSize:el];
the above code does work, but the compiler gives a warning...
Below is the runloop for my secondary NSThread* processThread
To close the thread I call
//cancel secondary thread
[processThread cancel]
//signal condition
[processCondition broadcast];
Is it then safe to then call:
[processCondition release];
[processThread release];
or do i need to be sure that the thread has finished?
Perhap...
Hi, everyone...
I need to know how to add a linebreak in plain text such as UILabel.
Soli...there is an amendment at here....
The linebreaks will added on the plain text on SMS or any notification alert message.
So, the "escape sequence" can used as well ?
Thanks
...
Hello everyone,
I try to invoke the following code to get SHA1 working on the iPhone:
uint8_t digest[CC_SHA1_DIGEST_LENGTH] = {0};
CC_SHA1(keyData.bytes, keyData.length, digest);
keyData simply contains a constant string of hex code. However the hash hex that I get as a result of this does not match what online SHA1 generators output...
Im trying to create a "search nearby" shops on iphone,
but i can not find any solution on how to get the data from Gdata Libraries.
http://code.google.com/p/gdata-objectivec-client/
They only support the following Google services provides a Google data API, but not google maps?!
Google Base
Blogger
Book Search
Calendar
Code Search
Co...
hi....
what is the code for the line break in the iPhone notification alert message or plain text on
SMS ?
Thanks
...
#import "MyViewController.h"
@implementation MyViewController
@synthesize menuView, gameView, helpView, optionsView, gameButton, helpButton, optionsButton;
- (void) viewDidLoad {
[self setView:menuView];
}
- (IBAction)gotoGame {
[UIView beginAnimations:@"buttonSlide" context: nil];
[UIView setAnimationDuration:1.5];
[UIView setAnimat...
I'm sure this is an easy one, yet I need some pointing in the right direction. I have a rather complicated NIB that I would like to have only one view in that nib to listen for touch & multi-touch events. What is the best way of doing so using IBOutlets?
Thanks
...
Hi I am create an iPhone app, which will use SQLite as database. This database is synchronized by websever by XML HTTP request. The problem is, I don't have pre-build architecture for creating database app.
Is there any tutorial which will guild me how to write Data Access Layer(DAL) or how to import SQLite file with iPhone in secured ...
For some reason, after installing the iPhone OS 3.0 SDK, I have no option anymore to create a 2.2 project. I don't want to develop for 3.0 because I target iPod touch, not iPhone. iPod touch users don't upgrade for 10 dollars so likely.
Xcode creates projects with OS 3.0, and there is no option to switch to 2.2 SDK. Although for my exis...
Hi, I have a question, I've design an app with UIButtons and below of it is an UIImageView. My problem was when I start my app the UIButtons get underneath on UIImageView. Here's my code for my UIButtons.
Code:
CALayer *touchedLayer = [myUIButton layer];
CABasicAnimation *wiggleAnimation = [CABasicAnimation animationWithKeyPath:@"trans...