UIActionSheet has a showFromTabBar: method
- (void)showFromTabBar:(UITabBar *)view
But how to get a reference to the UITabBar?
I'm currently using
UITabBar *tabBar = [self.tabBarController.view.subviews objectAtIndex:0];
I've also seen someone traversing tabBarController.view.subviews and looking for the UITabBar instance. Is th...
I'd like to be able to set a contact's default image programmatically on the iPhone. Does the API currently allow for that? I've found you can toggle several properties for the person, and create new contacts. I can't seem to find anywhere in the documentation that allows to set a photo.
Thanks!
...
Hi
As the title says, is this possible?
I want to "mirror" my actions on the iPhone so it shows on the computer monitor.
We've seen this on the Apple key notes, but I am not sure if this feature is public.
bob
...
I am attaching a Tab Bar Controller to an existing view with a toolbar, however I am getting the tab bar controller offset at the bottom, so you can just see the top of the items. I am using the following to attach the Tab Bar Controller to the view:
(void)viewDidLoad {
[self.view insertSubview:dashboardTabController.view atIndex:0];
}...
I have been spending time learning how to use the iPhone SDK. I've read "Beginning iPhone Development: Exploring the iPhone SDK" from cover to cover and I've never seen an example of multiple views within one XIB.
To illustrate what I mean, here is a screen shot of a XIB with the simple configuration of what I'm referring to:
I figu...
How can I sanitize URLs made from strings to replace characters like space to %20 and etc?
How can I Print a NSURL in NSLog?
How can I send data to a webserver using POST? i know that for HTML GET:
NSURL * theURL = [[NSURL alloc] initWithString:url];
NSString * results = [NSString stringWithContentsOfURL:theURL];
will do the deal, b...
I'm getting the UIImage from the image picker and putting it into a UIImageView. It works fine for regular images, but for images taken with the iphone camera, they sometimes come up rotated 90 degrees.
When accessing one of those images later (it has already been saved to disk) I noticed the above error.
Any ideas? I assume it has som...
I am using the UIImageView to animate a bunch of images. I know that I can change the speed by altering animationDuration, but that doesn't seem to take effect until the animation is restarted.
My problem is that beside not really wanting to have to restart the animation as this limits me to only being able to change the speed once per ...
Hi all,
I'm working on trying to obtain the UIView that UITableView scrolls over, if scrolling is enabled. Typically, the background is white, and if you push the UITableView out of its bounds, you'll see a background. I'm trying to set this background to a UIColor of blackColor. I can't seem to find the appropriate one to tag. I've tri...
Hello all. I'm having an odd issue with CALayer drawing for the iPhone. I have a root layer which adds a bunch of sublayers representing "bubbles". The end result is supposed to look something like this:
The problem is that I can't seem to get the layer to anti-alias (notice the jaggies on the bubbles). My code overwriting drawInC...
Hi folks!
This inquiry is rather difficult for me to properly phase, but I'm going to give it a shot either way.
I'm currently trying to figure out how to set my UITableView's to scroll over a background, and not within their own bounds. What I mean by that, is if you look at the Tumblr application, screenshot here: http://dl-client.g...
This is a very newbie questions, but does the iPhone API provide any data structures to work with (i.e. linked list, hash map, etc.)?
...
The iPhone makes it really simple to snarf down an image from the web; you can turn a URL into a UIImage in one line of code. So I'd like to enable my app (an educational puzzle game... my first!) to download some random images to make it more interesting and dynamic.
I thought about using Kodak's image of the day RSS feed, but I'm hav...
Why doesn't this code work? It shows the Google screen but it doesn't change the text box value. I confirmed that the JS does work by running it in Safari, and this code seems to work otherwise since running alert('hi') does work.
NSURL *web_url = [NSURL URLWithString:@"http://www.google.com"];
NSURLRequest *web_request = [NSURLReques...
Hi,
I need to implement cover flow functionality to our iPhone application. I tried to get sample code on net to get started with it. But I didn't find any luck. Can anyone tell me how to implement cover flow functionality or gimme a sample code?
Thanks In Advance!
...
Hi Guys..
I am using a table view in which each sell has a particular phone number along side a call button on pressing which the number is dialed...For example if i have a phone number in the cell as (425)821-1300 i changed it into the standard format 425-821-1300 by the code as shown below using the string variable phonenumberstring...
I am writing an application which is continuously sending and receiving data. My initial send/receive is running successfully but when I am expecting data of size 512 bytes in the recvfrom I get its return value as -1 which is "Resource temporarily unavailable." and errno is set to EAGAIN. If I use a blocking call i.e. without Timeout th...
Hi guys,
The motivation for this question is me trying to get LDAP functions to work with an iPhone application which is a project I'm attempting for part of my dissertation.
When I was developing the application I used the ldap.framework framework that is part of Mac OS X. This works fine in the simulator, but when I try to now get t...
Hi,
I've got an iPhone UITableView displaying custom UITableViewCells that display on their right the disclosure-button icon.
When I swipe the cell, the disclosure button is automatically replaced by the red "Delete" button. If I press the "Delete" button the row is removed from the table, but then something strange happens.
When I scro...
i developed one small application through torque game builder,i want to compile that application in xcode and i am new to this torque game builder!!!
...