I have a UITableViewCell with a image in it. For some reason whatever UIImage I assign to it, it will not resize.
So I have some simple code like this:
((BubbleCell *)cell).bubbleImage.image = newUIImage;
Here bubbleImage is a UIImageView, a member of BubbleCell(UITableViewCell). When I assign the image to it, it is always the origi...
I'm writing an iPhone web app, and I want to automatically focus a text field when the page is loaded, bringing up the keyboard. The usual Javascript:
input.focus();
doesn't seem to be working. Any ideas?
...
Can we have NavigationBar at the bottom of the screen.As i have to display a image at the top of the screen.
...
Trying to get some basic drag/drop functionality happening for an iPhone application.
My current code for trying to do this is as follows:
- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self];
self.center = location;
}
This ...
Hi, I have recently updated my xcode and installed iphone sdk 3.0 GM Seed. I am trying to build my 2.2.1-application in 3.0, but I get a bunch of errors - mostly permission denied-errors. Here is one of them:
Unable to write to file
/Users/hansespenskorpen/jobb/rac/build/rac.build/Debug-iphonesimulator/rac.build/Objects-normal/i386...
If I have a UIImageView and want to know if a user has tapped the image. In touchesBegan, I do the following but always end up in the first conditional. The window is in portrait mode and the image is at the bottom. I can tap in the upper right of the window and still go into the first condition, which seems very incorrect.
- (void)t...
When I start a project with the Utility Application Template (which has a flipview), I get 3 .xib files.
When I open the "MainWindow.xib", I get two rectangular pieces. One of them represents the window. The other is called RootViewController. This has a view in it.
My question is :
1) How is this view represented, because there is n...
Hi Guys,
I am having problems with properly displaying background image of navigation view.
Here is the pic:
Here is the code:
(id)initWithStyle:(UITableViewStyle)style {
if (self = [super initWithStyle:style]) {
UIImage *image = [UIImage imageNamed: @"bg_table_active.png"];
UIImageView *imageview = [[UIImageView alloc] initWith...
Hi,
I have a UIImage that is displaying a grayscale button. Is there a way to "shade" the image with a color when i draw it? So i could effectively have 1 grayscale button image, but have any color button? I would also like to have the transparent pixels stay transparent if possible.
Thanks!
...
Hi,
How to create & access static string in iPhone (objective c)?
I declare static NSString *str = @"OldValue" in class A.
If i assign some value to this in class B as str = @"NewValue".
This value persists for all methods in class B. But if I access it in class C (after assignment in B) I am getting it as OldValue.
Am I missing somet...
Hello All:
I am working on an application to do some image processing. If some thing goes wrong the application crashes. I want to avoid such scenarios. When ever any exception occurs in any stage of the application, I want to handle it and give the user a friendly message. In C#, windows form application this can be done, but for iPhon...
I want to save the rotated image to the photo library.
I have a UIImageView in which the image is displayed. I used the below snippet to flip the image. The rotated image does get displayed since I transform the image view. But while saving the image I get the original image (not flipped). How do I save a flipped image?
#define DEGREES_...
Hi All,
Can a XML file be generated for an iPhone view?
The view may contain any iPhone control.
Thanks for IDEAS.
...
After I built my iphone 2.2.1 application in sdk 3.0, I get a lot of errors of type §non_lazy_ptr. I am getting it on the CFFTPStream constants, like kCFStreamPropertyFTPPassword and kCFStreamPropertyUserName. Anyone know what causes this?
...
Hi,
I'm new to iPhone development.
I used a jailbraked iPhone (OS 2.2) for for some time with no problems. Recently I had to upgrade to OS 2.2.1 and after the update I am no longer able to debug apps on the phone. In the console I'm getting the following warning and the apps crash at launch (only when debugged) :
...
warning: UUID mism...
I want to move circle in a circular path like knob tune.......
How could i do this?
can any one help me?...Thanks in advance
...
Is it possible for me to enroll in the iPhone developer program without being under a business or company?
If yes, what are the requirements? Do I need a supporting website or anything similar?
...
I need to associate a unique key to a UITouch instance throughout it's lifecycle -Began, Moved, Ended, Cancelled. I've been printing NSLog on a key for each touch and noticed to my suprise that each touch does not generate a unique key if the key is generated as follows:
for (UITouch *touch in touches) {
// ...
NSValue *key = [NSValue...
i have to change the Label of UISWITCH from ON-OFF to YES-NO.i want this method to be implement in seperate class that this methods should be access by other classes.
i have tried to implement the snippets provided in the cook book.But hard luck .
...
Apple will hold up to 30% of what they owe you for tax purposes unless you can provide an EIN number to apple to claim the tax treaty benefits.
But the information from this article only applies to developers who operate under a company, so if i am self employed and work individually how can I claim the 30% withholding tax?
...