When I use the this method to initialize a UITabBarItem:
- (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag
Do I need to have a distinct tag for each tab bar item, or (since I don't use them) can I simply use the same tag value for all of them?
...
UIFont doesn't appear to manage color, is there a way to change the font color using UIStringDrawing.h or specifically:
- (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font
Thanks
...
Hi,
I'm searching for the old style of the UIProgressView:
The only UIProgressViewStyle, I'm able to present is this:
Is the old one still available? Setting the property UIProgressViewStyle always leads to the blue UIProgressView.
...
Hi all,
Is there a way to find out whether two CGPathRefs are intersected or not. In my case all the CGPaths are having closePath.
For example, I am having two paths. One path is the rectangle which is rotated with some angle and the other path is curved path. Two paths origin will be changing frequently. At some point they may inters...
The application I am working on manipulates an image for a user, and after the user is done, they can save that photo. I have no problem capturing the screen and saving it (as I want some of the labels saved with the image) but this call:
UIImageWriteToSavedPhotosAlbum([self getScreenAsImage] , nil, nil, nil);
only appears to allow me...
HTF?
i'm new to the iphone SDK. for a navigationbar and uitable (from the NIB) eg. an empty/new navigation-based app, what is the best way to change the height of the uinavigationbar without it clipping/overlapping the uitableview? i essentially just need to move the uitableview down and i've tried just about everything now.
Q1) is it ...
I'm using a separate NSAutoReleasePool for my thread
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[self bulkyFunction]; // time consuming op
[self performSelectorOnMainThread: @selector(doneAll) withObject:nil waitUntilDone:NO];
[pool release];
and I call a function (bulkyFunction) that allocates two strings.
current...
While writing the touchesBegan handler for my view I ran into this interesting error.
Code:
...
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self];
...
The problem is point.x is always zero, no matter where I "touch" and y is a huge number that flunctuates somewhere between 1070000000 and 1090000000.
T...
I am creating an iPhone app where the user can send their work in an e-mail to whomever they wish. It is easy enough to open the Mail App using the openURL method of UIApplication.
NSString* lsMailToStr = @"mailto:?subject=Subject!&body=Body";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:lsMailtoStr]];
However, it...
Hello,
If you have a plain (not grouped) UITableView with a single row, the rest of the screen is filled with blank or empty cells. How do you change the appearance of these blank cells? Af first, I thought they would have the appearance of the cell used in the table view but it seems they don't.
The people from Cultured Code (Things) ...
Quick one. I'm overlooking something...
I have a grouped table view that is built from arrays in an NSDictionary. Each array is a section of the table. When in editing mode and a user clicks "delete" I call
- (void)removeObject:(MyClass *)myObject
how can i determine which array to send the message [myArray removeObject:myObject]? N...
In the following code, I try to read data from a plist:
-(void)readPreferences
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSMutableArray * myAppDefaults = [defaults mutableArrayValueForKey:@"LastList"];
myCustomObject * savedObject;
NSUInteger i;
for (i = 0; i < [my...
Hey guys. I have a method that gets called each second which I want to use to display the time that my app has been doing it's work. Currently the class I'm using (Which I did not create) has a property named progress which stores the total number of seconds.
I have already written some code which takes these seconds and formats it into...
I am using the numbers and punctuation keyboard for a textfield, but whenever the spacebar is pressed the keyboard switches to the default keyboard. Is there a way to prevent this from occuring? I need the spacebar, so removing it is not an option for me if that is even possible.
...
I'm using NSOperation and NSOperationQueue to handle all of my networking threads so my interface can remain responsive while handling data transfer over the internet. Currently, I've got my operation queue set to a maximum concurrent operation count of 5, and it seems to work well.
I'm wondering, though, if there is a more ideal numbe...
I have a pretty simple UIViewController. It's initialized with a view I've created in Interaface Builder, which contains only a UIImageView. When the user touches the screen, I want the touchesBegan message of UIViewController to get called. So, I override it and added some logging, but nothing has happened.
I haven't done anything "sp...
New to all this Xcode stuff - I have a few UIButton's that links to movie & music files from my web site - they works fine, it's just that there's some lag time while it's loading the MoviePlayer where it seems as if nothing's happening.
I would like to set up an UIActivityIndicator - I can't sem to find a simple way to do it.
And if...
I have created an app in xcode with sqlite3.I want to create a button named sync to sync with my mysql database in my server. Any suggestion about sync process? Please let me know.
...
Hi,
in my iPhone app, I have an UIWebView with some simple HTML links to audio files.
When the user opens such an audio file, media player plays it an leaves my
UIWebView with this screen:
How do I dismiss it after the audio file was played?
I've searched for UIWebView's delegates without finding something useful.
...
Let's say I have an NSArray of NSDictionaries that is 10 elements long. I want to create a second NSArray with the values for a single key on each dictionary. The best way I can figure to do this is:
NSMutableArray *nameArray = [[NSMutableArray alloc] initWithCapacity:[array count]];
for (NSDictionary *p in array) {
[name...