Hi,
How I can write a phone number in the xhtml file and when the user clicks (on the number) the iphone call automatically (to that number)?
Any ideas?
Thanks :-)
Hi,
I have one audio file captured from my iphone. I want to upload this audio file using SFTP protocol?
Is is possible? Is there any third party library available? Is it the same as putting file on FTP?
Thanks,
Jim.
Will iPhone OS 4.0 will give developers to send SMS and MMS inside the application..!
Or is it already been in SDK?
All the time while sending SMS, native window is popping up.!
Do any one has any idea about this?
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.
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.
I downloaded the iPhone 4.0 Beta. But for my projects I need to compile for 3.1.3 to be able to still submit my projects to the App Store. If I run an old project that isn't a problem I can see all the versions, but when I start a new project I can only pick the 4.0 beta, how can I fix this?
I have one crash in my iPhone application that does throw an NSException. The crash reports are completely ambiguous in where the error is and what exactly is causing it. Is there a smart way for me to set a top level exception handler somewhere to see what is causing it? I can't replicate the problem myself, but a few of my beta users certainly can.
What's a smart way to handle a problem of this nature?
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 ?
Could someone with knowledge of jQTouch for the iPhone have a quick look at my source and let me know what the heck I'm doing wrong? Clicking the big green buttons is supposed to reveal that particular section.
http://designsnack.com/mobile/
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,
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.
Hi,
how do I download and archive full web pages (HTML, CSS, JS, images) on the iPhone?
I know how to download the single files. But is there any existing approach to get all files (e.g. all included javascripts), which are linked with a particular web page?
Could someone please tell me what I am doing wrong? I'm not a newbie at programming but I feel like it tonight! Every time I increment the incrementing variable it throws a fit! When add one to it, it behaves fine, but if I try to add one more to it it wants to add 2 more. And then if I try to de-increment it wants to subtract from the original number that it was assigned to.
I've tried:
i++;
i = i+1;
i = i++;
Nothing seems to work. It's got to be a stupid mistake.
Press the buttons to increment and de-increment.
http://michaelreynolds.net/iphone/
here's the code:
var dayNum = 30;
//----------------------------------------------------------------------
$.jQTouch({
icon: 'dailyqoteicon.png',
statusBar: false,
initializeTouch: 'a.touch'
});
//----------------------------------------------------------------------
$(document).ready(function(){
//$(function(){});
$(function(){
$('a.touch').swipe( function(event, info){
//alert("jQTouch swipe event");
//alert(info.direction);
});
});
$(function updateVerse(){
//alert("updateVerse called");
$.ajax({
type: "GET",
dataType: 'JSON',
data: 'day='+ dayNum,
url: 'forward.php',
success: function(data){
var obj = $.parseJSON(data);
$("h2.quote").html("");
$("h3.reference").html("");
$("h2.quote").append(obj.quote);
$("h3.reference").append(obj.reference, " ", obj.version);
//$("span.version").append(obj.version);
//-----------------------------------
// JSON string {"id":"1","quote":"For to me, to live is Christ, and to die is gain","reference":"Philippians 1:21","version":"NKJV"}
},
error: function(request, error){
alert("problem retrieving json data string");
}
});
function addDayNum(){
dayNum = dayNum + 1;
//dayNum = dayNum++;
}
function subDayNum(){
dayNum = dayNum - 1;
//dayNum = dayNum--;
}
$("div#header a.next").tap( function(){
addDayNum();
//dayNum++;// doesn't work at all
//dayNum = dayNum + 1;//doesn't work at all
updateVerse();
//alert(dayNum);
//alert("next clicked");
});
$("div#header a.prev").live('click', function(){
subDayNum();
//dayNum--;//doesn't work at all
//dayNum = dayNum - 1;// doesn't work at all
updateVerse();
//alert(dayNum);
//alert("previous clicked");
});
});
});
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!
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!
Hello,
when looking on:
http://www.pharao.mobi/WebApp17/
i can call this website on the normal webbrowser and on safari, but on iphone it is black, why?
I have added caching by adding Expires:------ to the header
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'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).
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.
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.
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