I am trying to create a UITableView with variable height rows as explained in the answer to this question
My problem is each cell contains a UIWebView with different (statically loaded) content I can't figure out how to calculate the proper height based on the content. Is there a way to do this? I've tried things like this:
(CGFloat...
I have a problem where I need to display the UIImagePickerController as a camera view and capture swipes on the user's screen. Currently I display the imagePicker in my custom view controller, then call its presentModalViewController for the camera. Once the camera is displayed, I insert a view on the top to capture the user's swipe gest...
I'm trying to read in and parse an xml document in an iPhone app. I begin parsing and then use the override method:
static void startElementSAX(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI,
int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, c...
Hello,
I have UITextView view in my Iphone application which displays large text and I am paging that text with offset margin, but the problem is, that it has some kind of margin or padding and it messes up my calculations (it seems to be diffferent depending on font style).
Is it possible to get rid of that unnessecary space around UI...
I'm using NSXMLParser to parse XML data from a remote server. I followed this tutorial to get up and running and everything is ok for any (NSString *) members I have in my objects that I'm creating. I also have integers that I need to set from the XML data, such as:
<root>
<child>
<name> Hello </name>
<number> 123 </...
I have an iPhone (Xcode) Project that was working fine. Something must have been changed, because all of a sudden I am getting errors that pertain to NSLog, UIActionSheet, and several other items I have been using JUST FINE until now. What am I missing? Any assistance would be GREATLY appreciated!
Checking Dependencies
Ld /Users/markgo...
I need to store certain information while my application is executing and again fetch it at the time the application starts. I tried storing it in XML using GData but didn't succeed.
I used the NSFileHandle it doesn't give me an error but it fails to create a .txt file for read / write purpose. Is there any other way of storing and retri...
I have a UITableView that I populate with data that i download over the internet. While the data is being downloaded, I want to show a loading label above my TableView to signify to users that something is actually happening and there is not a problem with the app. What is the best way to do this??
...
Hi, I decided to use UIScrollView in my application since I have to scroll the elements appearing on the screen.
When I am checking out my scroll view in Interface Builder, it looks just perfect. But when I run my app, I am getting items from the scroll view obscuring items from the view. How can I make it work the way I need it? And wh...
I was creating a data structure manually using the following:
NSDictionary* league1 = [[NSDictionary alloc] initWithObjectsAndKeys: @"Barclays Premier League", @"name",
@"Premier League", @"shortname",
@"101", @"id", nil];
NSDictionary* league2 = [[NSDictionary alloc] initWithObjectsAndKeys: @"Coca-Cola Championship", @"...
Hi,
I am initializing a text view from my code, not from the interface builder and it appears to be just a white rectangle. I want it to have the same rounded shape as is in the interface builder. How can I achieve this?
The same question concerning UITextView.
Thanks.
...
What is the preferred method of checking for sanity in objective-c and cocoa?
...
I'm using the cocos2d framework for various of my applications, and have run into the following problem. I have set up a few sequences of actions and CallFuncNDs, the actions have durations set up and when I run it in the iPhone simulator, it works just like I expect it to: transitions take the amount of time I set them to and they go in...
Here is a helpful routine you can use on the iPhone to traverse the view hierarchy when you want to know what's being created and where it's going.
This routine dumps the view hierarchy to NSLog starting at the view passed in. Subviews show their index in the subviews array and all super classes in order separated by a colon with the f...
Hello everyone, I am trying to convert an openGL application to make it work for iPhone.
I am almost finished with everything. but got nothing & stuck up with this part. Can anyone tell me is everything ok with the following converted part.
for(int y=0;y<wet->h-1;y++)
{
glDrawElements(GL_TRIANGLE_STRIP, wet->w, GL_UNSIGNED_BYTE,tex)...
Hi, I'm pulling in xml using the cocoa NSXmlParser. Since this process most likely won't finish before my view is loaded I want to move it to a secondary thread like I have seen in many examples including the seismicxml example on the apple site.
The flow of my application is as follows. I have a table view which cells can be clicked t...
The design I've been given for an iPhone app I'm working on calls for a 1px red line at the bottom of the navigation bar. I know how to draw a line with Quartz and -drawRect, but how do I get access to the UINavigationBar's view? Or would it work to draw the line in the app's main view, on top of everything else?
Duncan Wilcox's answer ...
Duplicate:
Custom colors in UITabBar
The iPhone UITabBar generally uses a blue and gray icon scheme. However, the iPod Touch ships with an application from Nike that has a red icon overlay, as opposed to the blue overlay. Here's a screen shot:
Image Link
How do I do that? Do I use the hidden setSelectedImage method in UITabBar...
I'm trying to mimic the default emboss that automatically gets applied to navigationItem.title, as well as many other UIKit controls.
As seen in this screenshot's title ("Table Cells"):
I'm essentially trying to add 2 UILabels to the navigationItem.titleView, however the UILabels just show up as flatly drawn and it really just doesn'...
To customize the visual look of a UISlider you can set the thumb and track images. Part of the track images gets stretched to the appropriate with. From the documentation:
A stretchable region sits between two
end cap regions. The end caps define
the portions of the image that remain
as is and are not stretched. The
stretchab...