How do I replace the vertical blue-gray stripes background in a grouped UITableView?
For example, it would be cool to have a background of horizontal stripes instead!
Here is a nice example:
...
I'm somewhat confused by the following behavior I'm seeing within an Xcode project compiled for the iPhone simulator (or device):
NSString *test = [[NSString alloc] initWithCString:"foo"];
NSLog(@"test retain count = %d", [test retainCount]); // prints 1
[test release];
NSLog(@"test retain count = %d", [test retainCount]); // also pr...
I'm working on an iPhone application with a few data relationships (Author -> Books for example). When a user deletes an Author object from the application, I have a few SQLite triggers that run on the delete to remove any books from the database that have a foreign key matching the Author's primary key.
I'm also using a trigger to i...
Hi all,
I'm almost there understanding simple reference counting / memory management in Objective-C, however I'm having a difficult time with the following code. I'm releasing mutableDict (commented in the code below) and it's causing detrimental behavior in my code. If I let the memory leak, it works as expected, but that's clearly not...
I'm debugging some code and finding it difficult to see & track the values being entered by the iPhone's keyboard into a UITextField (and from the UIDatePicker.)
I would expect Arguments>self>textField>_text to reflect the value that was entered into the textField but it isn't. It show's a different value ($0.00 instead of $1.25 for ins...
I get only the second value inserted into the database. dataHold.Id has a value, as does aTextField. However, when I look at the database, the Id isn't being inserted. Is the sqlite below correct?
const char *sql = "insert into Userdata (Id, Name) Values(?, ?)";
sqlite3_stmt *selectstmt;
if(sqlite3_prepare_v2(database, sql, -1, &se...
I'm looking for an alternative technique for rendering reflections in OpenGL ES on the iPhone. Usually I would do this by using the stencil buffer to mark where the reflection can be seen (the reflective surface) and then render the reversed image only in those pixels. Thus when the reflected object moves off the surface its reflection...
I want to display a progress indicator in a semi-transparent box that floats over a table view. In other words, when the table contents are being downloaded, I want an "Updating" label to appear over it.
I have seen this in several apps in the store, notably Facebook (when you shake to reload) and Darkslide.
My first impulse is to cre...
An activity indicator view is useful in many applications.
Any ideas about how to add, activiate and dismiss an activity indicator view on iPhone?
All the methods for this are welcomed here.
...
I remember seeing a tutorial a while back on this but am unable to re-Google it.
Supposedly there is a way to get Safari on the iPhone to give keyboards other than the default. It went something along the lines of this, where certain keywords in the input name attribute triggered it...
This would give the default keyboard:
<input type...
I'm buying a mac in a month or so but could like to start working on an Iphone app before I actually get my mac. Is this possible on xp or ubuntu? I know that I won't be able to compile it or test it for the iphone to I get my mac but maybe I can get alot of my upfront work out of the way.
...
I received an NSMutableData from a server and now I want to convert it to an NSString. Any ideas about how to do this?
...
I'm using the code from Apple's Document to do some HTTP communication.I can connect to the url sucessfully, but I failed to receive the data from my server.
// create the request
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://..."]
cachePolicy:NSURLRequestUseProtocolCachePoli...
Hi,
I'm working on an iPhone game, and trying to use a UIScrollView to display some icons, which I then want to enable the user to drag off the bar being scrolled, onto another view (basically, dragging them from their hand into play on the game board). The problem is that the UIScrollView clips everything outside it's own bounds.
Her...
I'm using Apple Document to create an app.I succeed in connection to the server, but I receive 0 bytes from the server(no response data). I take the following steps:
1) I create a view-based App and add a property 'receivedData':
In ViewController.h:
@property (nonatomic, retain) NSMutableData *receivedData;
In ViewController.m:
...
According to the documentation, iPhone's core OS includes the libSystem library, which I assume contains the standard C library functions and probably more. How can I find out about all the functions that are available in libSystem?
...
I received an nsstring from the server. Now I want to split it into the substring I need.
How to split the string?
For example:
substring1:read from the second character to 5th character
substring2:read 10 characters from the 6th character.
...
I want to split a few strings whose separate marks are different.
e.g.separate a string: "A-B^C~D"
So I want to get the index of each separate mark. Is there any method like indexOf(' ') on iPhone?
...
Hi all,
after a lot of trial and error, I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right.
I have a UITableView which is composed of custom cells. The cells are made of 5 text fields next to each other (sort of like a grid).
When I try to scroll and edit ...
hi friend,
i am new at the area of objective c. i am trying to build an iphone app by using navigation based template. as usually at the navigation based template show UITableView page at first but i would like to show other controller page at the starting of this app that UIView page. is it possible?
...