Hey
I had a iphone app, the code has a method to retrieve current time stamp from iphone and upload to server.
Here is my code:
long long timestampMillis = (long long)([[NSDate date] timeIntervalSince1970] * 1000);
However, one of customer use the app in Japan sent data shown on server is tomorrow time. How can I retrieve UTC timestamp...
I have a web app and I want to take photos and then upload them to a server. Can this be done with a webapp?
...
I have created View A and View B. My window has View A displayed on the screen. I also have a UIButton on View A. I want to switch from View A to View B when I click on the Button. I am not using any UIViewController. Is it possible to switch the views without using controller?
I am calling buttonAction method on TOUCHUPINSIDE
The prob...
Apple demonstrated Photo's for the iPad. In their demo, they said you can Flip the iPad and it flips the image.
How is this result achieved?
I've been reading about UIInterfaceOrientation all day and I'm lost
Any help would be appreciated.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
U...
This is a question about installing 4.0 on an 3rd gen iPod Touch. I already have a developer account. I have also downloaded the 4.0 SDK with XCode. I can test the new functionality in the simulator but I want to also try it on my device hence my question. I am looking for instructions on how to get it on my new third gen iPod Touch. Cou...
I'm attempting to do some debugging in GDB for an iPhone app issue. When I mouse over a string variable to see the contents the console goes into an infinite scroll with the text "Unable to access variable ".
Any ideas on why this might be happening?
...
Hi!
Content:
I stored the image from the iPhone's camera into a UIImage *storedImage defined in ClassA.
In ClassB (subClass of ClassA) I have a UIImageView *imageView which I proceeded to set
UIImageView.image = storedImage
since ClassB has access to ClassA's objects.
Problem:
Stored image does not show when ClassB's nib runs and...
I've got a main menu using a UITableView which can successfully push and display other ViewControllers to the fore. However, within these pushed controllers I wish to be able to push other controllers onto the navigationController stack. self.navigationController in a pushed ViewController seemingly does not reference anything, so when I...
My iPhone programs frequently contain grouped table views. A typical use might be for settings. The number of rows in these table views can run anywhere from roughly 2 to 20. The cells typically don't have a lot of uniformity.
Should I be trying to reuse the cells? If so, how much commonality do cells need to have to get a shared id...
I have been using UIViewControllers and initWithNibName with much success, basically using them as a convenient way to design the view with Interface Builder. Unfortunately I have built a hierarchy of views before noticing this line in the UIViewController documentation:
Note: You should not use view
controllers to manage views th...
I am preparing to submit my iPhone app for approval. This is my first time. One of the requirements is "Application URL".
I have done the following to create Application URL:
Click Foo-Info.plist
Right Click Information Property List"
Click "Add Row"
Select URL types
Expand "URL Types"
Expand Item 0
Type in "com.mycompany.Foo" in the...
i am getting following memory leaks for webview
initWebUILocalStorageSupport
MobileQuickLookLibrary()
and here is my code, i dont know what i am missing.
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f];
[theRequest setHTTPMethod:@...
I know that this is a very commonly asked question, but all of the answers on every website don't work! If you still don't know what I mean, then maybe this line of code will help you understand.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
CGPoint location...
I am creating a MKMapView in a method named "generateMap". From inside viewDidLoad, this works:
[self generateMap];
but this causes the map to quickly load and then disappear, leaving only the blank grey grid:
[NSThread detachNewThreadSelector:@selector(generateMap) toTarget:self withObject:nil];
Any ideas why this might be happeni...
I'm trying to create a universal iPhone/iPad app using this method: http://www.enscand.com/roller/enscand/entry/ready_for_ipad which is also described all over the web. My problem is that the "Upgrade current target for iPad" line is grayed out and doesn't appear at all when I right click the target.
I'm working on an app that I inherit...
Anyone knows? I found few answers but there were too complex and going too deep ... I need some simple answer :) ... thanks, O.
...
I'm creating a UIDatePicker programmatically, and setting its locale with the following code:
datePicker.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"es_ES"] autorelease];
The datepicker still appears in English (or whatever language I've set the phone to). Anyone have any idea why this does nothing, or how to fix it?
...
Are there any tools out there for Objective-C / Xcode? Something that can do one or more of the following:
Detect unused imports
Auto-synthesize properties
Autogenerate dealloc method from retained properties
Provide method stubs for interface
...
We currently have an iPhone app and would like to build a mobile website that has similar functionalities so it is accessible on multiple types of handsets.
what programming language should we best use for this? our app would like to use geolocation, camera/photo upload and access to the phone's contacts.
hope you can help us out!
be...
An iphone app I'm working on is terminating periodically ... and I have a feeling it is because of how I'm accessing a shared NSArray amongst several view controllers. So ...
What is the best way to pass NSArray/NSMutableArray amongst several ViewControllers ... all of which can modify and/or set it to nil or whatever?
Thanks
...