What's the battery time of iPhone 3G and 3Gs with GPS active? I'm getting approx. 2 hours of battery life with active GPS (Note: I'm using my own App).
I am writing an iPhone app which will start with asking the user to register with a login/passwd. These should be :
Saved securely locally
Send securely to a remote web-server
What do I need to achieve the above? Say, for local storage, shall I save them in a file or database? Shall I encrypt it? For sending it over, is HTTPS sufficient?
iPhone Safari seems to have some sort of problem whereby a page with css like this:
body {
background: #000 url(fixedimage.png) fixed repeat-x;
}
...doesn't actually lead to a fixed image. It scrolls as the user scrolls.
I've seen plenty of people kvetching about this on the internets, but no real solution. Does anyone have any ideas?
Hi,
In my application I m using following coding pattern to vibrate my iPhone device
Header File:-
AudioServices.h
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
////////////////////////////////////////////////////////////////
My problem is that when I run my application it gets vibrate but only for second but I want that it will vibrate continuously until I will stop it.
How it could be possible .Please help me out its urgent
Thanks in Advance
I am newbie to iPhone programming. I am not using Interface Builder in my programming. I have some doubt about memory management, @property topics in iPhone.
Consider the following code
@interface LoadFlag : UIViewController {
UIImage *flag;
UIImageView *preview;
}
@property (nonatomic, retain) UIImageView *preview;
@property (nonatomic, retain) UIImage *flag;
@implementation
@synthesize preview;
@synthesize flag;
- (void)viewDidLoad
{
flag = [UIImage imageNamed:@"myImage.png"]];
NSLog(@"Preview: %d\n",[preview retainCount]); //Count: 0 but shouldn't it be 1 as I am retaining it in @property in interface file
preview=[[UIImageView alloc]init];
NSLog(@"Count: %d\n",[preview retainCount]); //Count: 1
preview.frame=CGRectMake(0.0f, 0.0f, 100.0f, 100.0f);
preview.image = flag;
[self.view addSubview:preview];
NSLog(@"Count: %d\n",[preview retainCount]); //Count: 2
[preview release];
NSLog(@"Count: %d\n",[preview retainCount]); //Count: 1
}
When & Why(what is the need) do I have to set @property with retain (in above case for UIImage & UIImageView) ? I saw this statement in many sample programs but didn't understood the need of it.
When I declare @property (nonatomic, retain) UIImageView *preview; statement the retain Count is 0. Why doesn't it increase by 1 inspite of retaining it in @property.
Also when I declare [self.view addSubview:preview]; then retain Count increments by 1 again. In this case does the "Autorelease pool" releases for us later or we have to take care of releasing it. I am not sure but I think that the Autorelease should handle it as we didn't explicitly retained it so why should we worry of releasing it.
Now, after the [preview release]; statement my count is 1. Now I don't need UIImageView anymore in my program so when and where should I release it so that the count becomes 0 and the memory gets deallocated. Again, I am not sure but I think that the Autorelease should handle it as we didn't explicitly retained it so why should we worry of releasing it. What will happen if I release it in -(void) dealloc method
In the statement - flag = [UIImage imageNamed:@"myImage.png"]]; I haven't allocated any memory to flag but how can I still use it in my program. In this case if I do not allocate memory then who allocates & deallocates memory to it or is the "flag" just a reference pointing to - [UIImage imageNamed:@"myImage.png"]];. If it is a reference only then do i need to release it.
Thanks in advance.
When I try to debug my app on the iphone device, the splash screen shows and then the app crashes immediately. If I run the app in the simulator or on the device (not from XCode) it runs fine. I tried putting a breakpoint in the main method and it doesn't seem to hit it. There are no logs generated. ideas? suggestions?
It is possible to develop native applications and load application onto iphone/ipod devices before paying a Apple Developer Connection membership fee?If anybody knows please give me some idea about that.
When you use facebook connect on the iPhone do you have to use the supplied login button and login screen built into the framework? The reason I ask is because I'm also using twitter and I would like to have the same user experience when they log in to user as they have when they log in to facebook. So I can either replicate the login screen facebook connect uses for twitter or just not use the facebook connect login screen all together.
Many Fortune 500 companies have incorporated flash in their websites. What solution to port them to all Mobiles as I hear Apple refuses to get flash ?
So what solution does one have ? Redevelop everything at awfull cost using different apis for different mobiles ?
Why does iphone refuses to incorporate flash ? What's the purpose of such restriction ?
Hi,
I a bit overwhelmed with all of the sample code I've seen on the apple dev site.
I'm looking for a simple example to show me how to load an xml file from a server into iphone.
I would like to read url's from this xml file and load an image.
I am implementing FBConnect in my iPhone App.I want to post a predifined message to all facebook friends at once of the logged in user.
How to do it?
Please paste the total code. Any urgent help would do.
Thanks in advance.
Hello All,
How do i Convert .doc format to pdf file from iphone .
i Want same layout as .doc format.
i Tried with html format but did not get any success.
anyone suggest any solution would be appreciated.
Thank you.
I want to create my own media player. There is so much restriction with default media player control on iphone. I have written lots of applications using default media player.
Now i want to write my own media player.If any one can give pointer from where to start to create custom media player.
Thanks in advance.
Jim.
hi friends..
I have a plan of creating Dynamic UI in iphone using webservices ..that is the UI will be build according to the xml content from a webservice.
I need to know some of your suggestions regarding this... where will i get resources for building such an app... are there any tutorials available.....?
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.
Are you an iPhone/iPad/Android programmer with a designer soul? If so we would like to hear from you.
Drop us your best work/portfolio and than we talk.
[email protected]
Cheers
T
What is the unique identifier for an iPhone app?
In the info.plist file, there are keys:
Bundle display name
Executable file
Bundle identifier
Bundle name
If I have already submitted an app on the AppStore before. Then I change some of the keys in the project. Which of the above can be changed freely and AppStore still considers my app is same as the existing one? Thanks!
I am trying to insert UIWebview in UIAlertview as I this tutorial did http://codesofa.com/blog/archive/category/iphone with Table, i have tried webview in code but facing exception and my program in terminationg due to it.
In my iPhone app, I am using the UIImagePickerController with source type UIImagePickerControllerSourceTypeCamera. When the user takes a picture, the phone plays the familiar camera shutter sound. How can I replace this with my own custom sound? I know it's possible because I've seen other apps from the App Store do it (e.g. Red Laser).
Thanks in advance!
My simple iPhone game has two basic "screens":
home screen (UIViewController subclass)
game screen (UIWindow w/ EAGLLayer where all the OpenGL drawing happens)
Currently when the user taps "Play" on the homescreen the UIViewController is just hidden and the game screen is revealed. When the game is over the homescreen UIViewController is unhidden.
Does the hidden UIViewController consume any resources when it's hidden?
Hi..
I am developing a application in iphone which requires me to load my phone contacts.
how to load my contacts in the application?Is there any API or LIBRARY which allows me do the this.
Kindly suggest me with some solutions.
Regards,
Vijaya
I hope this is still programming related, as SuperUser doesn't seem the appropriate place.
Basically I wonder if it is possible to have Applications that are internal to a company on the iPhone? That is something like a companion Application to an Intranet (when Safari and Mail just don't cut it) which wouldn't make sense on the AppStore (and likely wouldn't get approved anyway).
Is something like that possible (without Jailbreaking or doing anything else that Apple doesn't normally want)?
Will CS5's Packager for iPhone still be an option when CS5 comes out? Or, will any apps submitted to the App Store be denied because of the new restriction that the app has to be written in Objective-C, C, C++, and/or AppleScript(?)?