Hi,
I am trying to make a call button that will call 18 which is Fire Dept in France.
So my code is :
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://18"]];
It doesn't work and I get this message in the console :
< warning > Ignoring unsafe request to open URL tel://18
But I saw other application that ...
I've written code that exports vCards and have the problem that the PHOTO data exported will show on a couple Windows programs, but when the vCard is viewed in the Mac or iPhone addrs books, the photo doesnt show.
I wonder if anyone knows whether there is something different with the formatting needed on these platforms?
...
.Hi,
I have a nib file that contains an header that will be used in most of my views, so that I can change it's layout just once when I need. I'd like to know if it's possible to add the header nib view with interface builder, or if I need to do that programmatically and how should it be done.
I've thought about setting the subclass of...
The problem is when de selectedSegmentIndex is unselected: "UISegmentedControlNoSegment" alias "-1".
The other states (0, 1, 2 , etc.), I can store as Integers and retrieve with
carTypeSegmentedControl.selectedSegmentIndex = [defaults integerForKey:@"typeOfCar"];
But -1 is no NSInteger.
I also tried to remove the Integer out of th...
I have a UIWebView with content populated from a Last.fm API call.
This content contains links, many of which are handled by parsing info from the URL in:
- (BOOL)webView:(UIWebView *)aWbView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;
…and passing that info on to appropr...
My iPhone app has a built in RSS reader. There are images and I'd like to find a way to cache them on the system but have the system manage the caching and eventual clean up.
Is there a way of doing this?
...
I was under the impression that when you use a development provisioning profile for a build of an app, only the specified developers can deploy that build to a phone.
But I just deployed a build that uses a development profile to a phone using Xcode Organizer, even though I'm not one of the valid developers for that profile. One of my c...
I'm creating an iPhone app for a client who's not comfortable with allowing users the ability to take a screenshot of the app content. Is there an API to block this while the app is running?
...
So I finally got through the mess of preparing my app binary to support the iPad, making it a univeral app, and then I got this strange error "Missing Screenshot". And due to the fact that I hadn't uploaded my iPad screenshots to the original binary (I forgot) that error made sense. So I went into the original iPhone app, added my iPad s...
Hi guys,
I am just starting Objective-C for iPhone development and have hit a small problem.
I am trying to use a UIButton in order to open a new view.
So far I have got all the elements connected up in interface builder and have added a UIViewController subclass, I am just not sure what code I have to put in the method that my button...
I'm trying to write an iphone OS app that includes a logbook feature. The problem that I'm having is that I want each new logbook to have its own categories that are user-defined, for example a chemical receipt log would have chemical name, vendor, receipt date, expiration date and comments.
The way that I'm trying to go about this is ...
We develop an iPhone app, and have push notification for development and ad hoc version working properly. But when we try to send push notification to real user devices in our database, we got SSL connection reset, then Broken pipe error. We think maybe there are too many devices in our database (more than 70000), so it is failed to send...
here is the problem! I have a UIWebView in my programs that loads a php page.
The problem is that if the page has a lot of lines i cannot see them.
I can "scroll" the UIWebView but when I leave the finger from the screen the page comes back to the original state.
I don't want to scale pages to fit the view cause if I do that the letters ...
I am trying to figure out how to hook up a button to play a sound programmatically without using IB. I have the code to play the sound, but have no way of hooking the button up to play the sound? any help?
here is my code that I'm using:
- (void)playSound
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"boi...
I am calling CGAffineTransformMakeRotation method on iPhone SDK 3.1.3.
Also, I have added CoreGraphics.framework.
But I got "_CGAffineTransformMakeRotation symbols not found" error
What did I do wrong?
Thanks in advance for your help.
...
So hell froze over and Apple accepted Opera Mini into the app store. Does anyone know what the user agent string will be?
The documentation says that Opera's template is like this:
Opera/9.80 (J2ME/MIDP; Opera Mini/$CLIENT_VERSION/$SERVER_VERSION; U; $LANGUAGE) Presto/$PRESTO_VERSION
...
I've created a program that uses core data and it works beautifully.
I've since attempted to move all my core data methods calls and fetch routines into a class that is self contained. My main program then instantiates that class and makes some basic method calls into that class, and the class then does all the core data stuff behind t...
Now that monotouch is banned, I was wondering if there is a way to translate C# (or some other language) into Objective-C? I won't mind using Apple's API as long as I don't have to declare my variables in 3-4 stages (ivar-property-synthesize-dealloc). All I want is a less wordy language, to concentrate on my intent and not on the compile...
I am using the NetworkActivityIndicator to show that my App is doing some work. When I run the app in the simulator, it shows the way I want - basically spinning the entire time until the selected tab loads the data from the server - but when I put the app onto my phone, I only get a split-second of the spinner before it disappears. Usua...
Hello!
I have my timer code set up, and it's all kosher, but I want my label to display "Minutes : seconds" instead of just seconds.
-(void)countDown{
time -= 1;
theTimer.text = [NSString stringWithFormat:@"%i", time];
if(time == 0)
{
[countDownTimer invalidate];
}
}
I've already set "time" to 600, or 10 mi...