// stampDuty percentages
float stamp1 = (invalue * 1 / PCENT);
float stamp2 = (invalue * 2 / PCENT); // #defined PCENT as 100
// stamp duty
NSNumber *stampN1 = [NSNumber numberWithFloat:stamp1];
NSNumber *stampN2 = [NSNumber numberWithFloat:stamp2];
// then goes to
// Stamp Duty invalue is entered in the textfield b...
I've noticed that on some devices the NSTimeZone's name method for a particular timezone can return different values. When testing the Brisbane time zone, my device returns @"Australia/Brisbane" whereas another user's device returns "Etc/GMT-10". Both iPhone's are running 3.1.2.
The Date and Time Programming Guide for Cocoa states that:...
Hi,
I have set up an application and used some of the basic code from "The iPhone Developer's Cookbook" to create a simple view. The application works correctly in portrait mode, but when it is rotated, the dimensions of the boxes stay the same. Here is my code:
- (void)loadView {
//Create the full application frame (minus the stat...
Hello
I have a strange problem when developing for the iphone
their is one window (in green) and one view (in orange)
when I try to test my app it looks like this in the iphone simulator
you can see the view have moved upwards
is this normal? and how to solve the problem?
many thanks
...
Hi, im using iphone sdk 3.1.2
Does anyone know how to programatically obtain the name of a Bluetooth device
that is connected to the iphone. I am using Bluetooth in my app and want to
display the name of the paired device ie if it was a Nokia BH-200 i can display this.
Thanks
...
When I've learned that I have to write some code to make the iphone keyboard go away. I was quite surprised. I was surprised even more when it become apperent that it is just the top of the iceberg.
What are the expected UI behaviors that aren't provided by system OOTB?
Is the list below complete?
The expected UI behaviors:
Focusi...
Hi,
here's my issue: i've prepared everything as the tutorial said on Apple developer site.
I got two certificates for my app, one of is for developmnet (testing on my iphone) and second for distribution. While first one works excellent, i cannot get the second one to work, here's the problem:
- i obtained certificate for distribution, ...
when i insert this code it will make an error how can i handle event without error?
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
switch (result)
{
case MFMailComposeResultCancelled:
URLCacheAlertWithError(@"Result: c...
Hi,
I'm developing a menu for a game. The menu contains four buttons; Campaign, Training, Highscore and Settings.
When I click one of these buttons, a new view controller should be shown. I add the new view controller using this function:
[self.view addSubview:myViewController.view];
It does show the new view controller, but I can s...
Hi,
I am trying to return the list of directories present in an app's Documents directory. I am able to get an array containing all files of a given extension (eg .txt files or .png files) and am able to return all contents (including directories). The problem arises when I want to return only the directories. Is there a simple way of ...
i have a UIImageView displayed in my view with an image "image1" already set.
I have a button below it.
During runtime i would like the image to change to "image 2" when the button is pressed and upon release i would like the image to display "image1" again
1) I know that i have to give the UIImage a label or something so that i can a...
I'm looking for some input on my current project architecture. There are three components: Server, Desktop, and Mobile Device.
I have 2 goals:
1) Send data (Approx. no more than 100 KB of text) from the Desktop (multi platform client application running on windows XP/Vista/7, and Mac OS X) to a server (Windows Server 2008, IIS 7, WCF ...
The UIImageView is placed in interface builder.
I already created an IBOutlet.
How do i programmatically change the UIImageView to view another image.
Can someone please help me?
...
I have been using Texture2D class from standard iPhone SDK samples for loading and displaying OpenGL textures . It works fine for me, although, there is still one small problem I would like to solve.
The performance of loading PNG textures is quite slow for me. I am trying to load about 10 PNG files with 512x512 size and it takes a whil...
I'm working in address book for iphone.
it generate address into UILabel.
when I'm running the application everything goes well, but after showing about %30 of the addresses and sadenly stopped without any reason!
Only in terminal shows:
Error, could not create MachMessagePort for database doctor (com.apple.addressbook.migrationdaemon) s...
There are a bunch of tutorials online about how to use xmlparsers or what not to bring an entire twitter feed into a UITableView. Thats not what I need. I only want ONE tweet. The most recent twitter update.
So, would some of you geniuses please show me in detail how to get my last (most recent) TWEET into an NSString in my iPhone app?...
I asked a similar question and someone gave me a tutorial link. But, the link made me use a table view and it looks bad with all the lines and stuff. So how do I just make a view with a button and background and stuff (Please write steps in 1.2.3.. format and it would be nice if you attached the code needed too.)???
...
The function focus() doenst seem to work for iphone? I need something similar to what they have done for gmail.com when you do a reply.
...
Hi,
Is there a way I can delete an image that is loaded into my app from a UIImagePickerController?
I want to be able to delete the image from the user's photo library when the user performs a specific action.
I am prompting the user to choose a image from their library, then it gets loaded into my app at which point the app does some...
Hi all,
I have build an iPhone app which is currently in the app store and I am preparing an update for it.
The app saves information in a sqlite database and because the DB structure has changed significantly in the update I am now trying to migrate the information from the old DB to the new one.
Everything works smoothly when I do t...