Hi, I am trying to spin a wheel on its axis -- setting it in motion using the mouse. Specifically, I am trying to spin a roulette wheel.
I calculate a delta x and delta y by getting the difference of x1 x2 and y1 y2. I can see in console via NSLOG msgs that it is ok. I use these values to calculate velocity.
CABasicAnimation *fullRotat...
I would like to change the standard iPhone UITextField so that it looks exactly like the search text field within the UISearchBar. You can see an example of this for the SMS text entry field within the iPhone Messages application.
I do not believe that the UITextField has a style property that will meet this requirement. Any ideas?
...
Hi all
My appliction is running fine of iphne 2.2 but on iphone 3.0 its crashing below is the
trace coming. Please help me. I am loading tab bar after viewappear.
#0 0x30010cb2 in _cache_malloc ()
#1 0x30010b2e in _cache_fill ()
#2 0x30010a68 in log_and_fill_cache ()
#3 0x30010676 in _class_lookupMethodAndLoadCache ()
#4 0x300102fa...
I want to implement something like this.Main screen shows login info.After login i want to show a view with 4 buttons in upper part of view.Names button1,button2,button3,button4 The first time view appears i want to show a view below buttons.And by clicking each button show different views? BTW for buttons i took UIsegmentedControl in a...
Hi,
I have a query regarding Dropping Multiple Pins On Map when Co-ordinates are given using Mapkit in iPhone.
Using Mapkit I am able to see the map at given latitude and longitude.
I am also able to drop a pin on one particular location.
However I have a array of lat and long and I want to show pins for them all.
How to achieve this...
Hi everyone, I'm having a trouble making a re-sizable rectangle for cropping my images. I'm trying to achieve something like this picture:
http://img192.imageshack.us/img192/8930/customcropbox.jpg
Well, the only problem is I have no clue where to actually start. I need some advice to how I can achieve this effect of cropping. What docu...
In a UIScrollView I have a UIImageView with the contentMode set to Aspect Fill. When I rotate the simulator to landscape mode the UIImageView shows the center of the image and I cannot scroll upwards to see the whole picture.
How do I fix this so that when I rotate the iPhone I instead see the top of the image (but still scaled with As...
Hi
I am writing an iPhone App and I need to securely send an XML request and receive it ALL securely. I think I did it right I just want some confirmation that the below code is all secure. Thanks.
NSURL *url = [NSURL URLWithString: @"https://secure.site.com/request"];
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url]...
So I have a Project with a UITabBarController and a few Navigation Controllers, and I am trying to implement Core Data. Its just not working.
I have a bit of a weird setup:
UITabBarController -> Navigation Controller -> Table View Controller
I have copied all of the Core Data code and added an entity with an attribute ('Event' and 'nam...
I am creating an application and I have a customized header of tableview. But sometimes the header gets duplicated. It takes the place of a row in tableview. How do I solve this strange problem? BTW, my tableviewstyle is plain, Header height is 44.0 and the footer height is 0.0. Here is an image how it displays. The header "comments" is...
Hi
I basically want to define an XML string in my header ie:
#define kXMLString "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml>%@</xml>"
In in my code I then want to replace the placeholders ie:
NSString *xmlpMsg = [NSString stringWithFormat:kXMLString, @"value"];
However this gives me warnings/errors. What's the best way to go a...
I'm trying to get the user's iPhone number and then strip off the country code and area code. I was wondering if someone could confirm that the style of SBFormattedPhoneNumber is:
A (BBB) CCCCCCC
Basically I have a method that strips off whatever's before the ) character. If this is inaccurate for users outside the United States plea...
Hey guys, I'm having trouble obtaining the value/text from a AlertView TextField. Maybe someone can look at my code and see what I'm doing wrong. Every time I press OK, the label get's a (null) value. I must be missing something here.
TextFieldINAlertViewController.h
#import <UIKit/UIKit.h>
@interface TextFieldInAlertViewControlle...
Im planning to make my next app 3.0 only (with Core Data). Does anyone have any data on what percentage of users have updated to 3.0?
If it's too low I might consider adding 2.0 support.
...
Hello everyone, does anyone have the code to emulate the iPhone's look and feel of the UIButton programmatically or through interface builder. To be more exact I would like to emulate the cancel and ok buttons of this image: http://www.machwerx.com/wp-content/uploads/2009/10/password.png
I don't know why it's not built into the SDK.
I ...
Hi All,
First of all I wish you a happy new year.
Coming to my question, is there a way to format the phone numbers? For e.g. +11234567890 to +1(123) 456-789. And also is it possible to separate ISD and STD codes in the phone number itself? Since apple is doing the same in IPhone's address book and as well as Mobile application, I bel...
Whenever I execute the code below I always get button type = 0 no matter what I specify for buttonWithType. Does anyone know an explanation for this behavior? I'm trying to distinguish button based on their type obviously without success since the buttonType property appears to be broken (or useless). As always thanks very much for an...
I want to get the most accurate location possible in my app. I have tried in the past (about 2 months ago) and I used to get some quite odd results. Like one time it would get a location pretty accurate (down to a few doors down), then I would try again 5 minutes later in the same spot and I would get somewhere a few kms away.
So what I...
Hello
I have an app with an image view. When the user clicks on this view I want to run some code which will change the colour of a label and then hide this view
I have everything setup in the interface, i.e. Outlets etc, but I dont see any events available to associate
Can anyone help or point me in the direction of a good tutorial ...
I am sending Push Notifications to my iPhone app, and I'd like a different set of instructions to execute depending on whether the app is already launched or not. I'm new to iPhone development, and while I suspect UIApplication or my project's AppDelegate class has the solution, I haven't found a good answer. Is there an easy way to chec...