I have been trying to get TTTabItem to work with images. And I dug up
that you can set the icon to an image file.
This is my implemenation:
TTTabItem *tab1 = [[[TTTabItem alloc] initWithTitle:@"Item 1"]
autorelease];
tab1.icon = @"bundle://icon_eat_min.png";
filterBar.tabItems = [NSArray arrayWithObjects:
...
Hi,
I have the NSMutableArray *children in the datastructure-class "Foo" which is the superclass of many others, like "Bar1" and "Bar2".
That array stores Bar1 and Bar2 objects to get a tree-like recursive parent-children-structure of subclasses from Foo.
To access the objects in the array, I loop through them using the foreach loop in ...
Hi have a problem with singleton Class in iPhone app.
I have create a simple class for visualization of NSString value.
My problem is generate when i try to stamp a NSString in a textVIew.
I call my methods and the value of string in Singleton class is (invalid) (i have tested it with debug).
Can you help me with the code solution.
my c...
Hi,
I have a tableView with multiple sections. When a sections contains only one row, and if I try to delete that row, my app crashes while executing this code :
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
I get this exception :
*** Terminating app due to uncaught exception 'NSRangeE...
What you can't do in C (C99 standard) that you can do in Objective-C? (with code example if you please)
...
I have an application with 8 tabbar items in the tabbar controller.
Is there a way I can customize the layout of the "... (more)" view in which you can configure which tab bar items should appear in the main tab bar.
It seems to be a table view controller but i'd like to use custom cell views and a background image.
...
Hi. I'm adding peer-to-peer bluetooth using GameKit to an iPhone shoot-em-up, so speed is vital. I'm sending about 40 messages a second each way, most of them with the faster GKSendDataUnreliable, all serializing with NSCoding. In testing between a 3G and 3GS, this is slowing the 3G down a lot more than I'd like. I'm wondering where I sh...
Hi,
I have annotations in a MKMapView with Callouts. In this Callouts there's a "Right-Arrow" Button. When clicking on it, I want to open a Detail View, an extra UIViewController with its own nib file etc. I use following code:
In my MapViewController:
- (void)showDetails:(id)sender {
// the detail view does not want a toolbar so...
Hi,
I'm using a UIImageView as a background-image and placed multiple UIButtons on it.
Now I want to move the UIImageView (with all the buttons on it) out of sight with a smooth animation (using CoreAnimation).
I couldn't find a container or grouping element in IB, so is there a way to move all the Views at once?
Thank you in advance a...
The questions might have been already asked, but I want to understand if iPhone's frameworks limited only to Objective-C use or it could also be accessed from C/C++ code?
For example, is it possible to use standard iPhone controls from C/C++ code? Are standard classes like NSArray, NSSet accessible from C/C++ code?
If they are, could a...
So you have UINavigationController, with a parent table which has one cell
---------------
| paul > |
---------------
And you click on it and get a screen which has textfields that you enter
---------------
| name: paul |
---------------
| age: 23 |
---------------
| hair: brown |
---------------
| etc |
----------...
I have a UIPicker where the user inputs a specified time (i.e. 13:00, 13:01, 13:02, etc.) - which determines their score. Once they hit the button an alert comes up with the score that is determined through this 'if-else' statement. Everything seems to work great MOST of the time - but I am getting some erratic behavior. This is the c...
I am having a problem with the UITableview cell cutting off strings whose characters are more than 12 chars. Any ideas why this would occur? I have not made a custom cell at all. I cannot find any solution to this problem through a Google search. Any ideas?
...
I'm trying to work with CFNetServices by trying to start up and publish a service asynchronously.
I'm trying to use the example code from here: http://developer.apple.com/mac/library/documentation/Networking/Conceptual/NSNetServiceProgGuide/Articles/CFNetServices.html#//apple_ref/doc/uid/30001276-SW3, but CFNetRegisterWithOptions always...
Hi. I use an instance of NSXMLParser. I store found chars in NSMutableStrings that are stored in an NSMutableDictionary and these Dicts are then added to an NSMutableArray.
When I test this everything seems normal: I count 1 array, x dictionnaries and x strings.
In a detailview controller file I want to show my parsed results. I call t...
I have 2 UITableViews on my screen.
As the user scrolls 1... I need the other 1 to also scroll to the same row.
I assume I need to find a "tableViewDidScroll" method... and somehow detect a "whichRowIsDisplayed" value... and then set the other tableView to "displayThisSameRow".
I can't find any of those 3 methods that I need.
Help!
...
I've been using NSXMLParser on the iPhone to parse out XML files from the web without any problems. I'm now in a situation though where I want to get the contents of three different URLs and then parse them all at once.
I'm doing this by creating three NSMutableData instances, each filled with the contents of one of the three URLs. I'm ...
I am working through Aaron Hillegass' Cocoa Programming for Mac OS X and am doing the challenge for Chapter 18. Basically, the challenge is to write an app that can draw ovals using your mouse, and then additionally, add saving/loading and undo support. I'm trying to think of a good class design for this app that follows MVC. Here's what...
I was wondering if anyone had seen an example of using cocoa touch to complete a fillable pdf form? So far I haven't found anything.
...
Hi everyone!
When changing the orientation of the iPad, my app rotates its view very fast. It is difficult to perceive the transition between both orientations. I would like to increase a little bit the duration of this transition.
Does anyone know how to increase the duration of this transition?
Thanks!
...