One of my view needs a big JSON file for tableview. I use gzip in HTTP request, but want to be sure of size.
The problem: How to measure size before and after ungzip? or how to know how strong gzip is?
This my code sample:
NSURL *url=[NSURL URLWithString:urlWithDate];
NSMutableURLRequest *urlR=[NSMutableURLRequest requestWithURL:url
...
Hello all!
In my app, I have a table displaying a cell in each row.
In Interface Builder, I dragged a button onto the cell, styled it as a Dark Info button, and connected it to a IBAction.
That is working fine.
Only, I want the button to behave differently, depending on the row of the table where the cell of the button is.
How would I ge...
Hi
I am using the ASIHTTPRequest class in order to communicate with a web service and get a response. This is how I send a request to the server
NSString *str = [NSString stringWithFormat:@"%@verifyLogin.json", serverUrl];
NSURL *url = [NSURL URLWithString:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
ASIHTTPRe...
I'm making an openGL game for iPod/iPhone.
At start I load at once all the textures I need. At first loading times where small, but as I kept developing and adding new textures the loading times have been increasing, to the point of taking many seconds before the game start.
Recently a new problem appeared, when I build the game in the...
I am having trouble copying the value of an NSString into a Textfield value. I've done this before, but for some reason it's not working in the function below. Can someone tell me if I'm doing something wrong?
pictureComment is the Textfield and comment is an NSString.
When I look at the log file, only 'comment' prints.
Any suggestion...
In order to send and receive encrypted messages from/to the iPhone I need to read a public key (server's public key) PEM file and create a SecKeyRef (later I could even store it on the keychain in order not to create it again).
This is my current workflow:
On the server: Create a P12 file with the user's certificate and private key. S...
For some reason the top half of the my action sheet is not opaque. I have created the view and action sheet using the code below:
//allocate the view
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
UIActionSheet *popupQuery = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
...
I'm making an opengl game for iPhone. And I'm about to start adding sound effects to the app. I wonder what's the best framework for this purpose.
Is AV foundation my best option? Any others I'm missing, like Open AL perhaps?
...
I want to rotate a CGPoint on the screen depending on the angle and the rotation is anchored on another point. Was wondering what is the most efficient way of doing this?
...
Guys,
I've a question about printing text in header and footer of table view section. I want to show some text in footer of each row, but i'm having problem doing so. When i start next section it start drawing from below of first one. To Get the idea what exactly i need, go to Settings->General->Network
In this screen, we've multiple se...
I've been having a very hard time finding good examples of UIScrollView. Even Apple's UIScrollView Suite I find a bit lacking.
I'm looking for a tutorial or example set that shows me how to create something similar to the iPhone Safari tab scrolling, when you zoom out from one browser window and can flick to others.
But I'm having a ha...
Hello all,
Im trying to get a UITableView to display items contained within an array.
This array is contained within a class (HX_ParkingSearch).
I have a ref to this class that contains the array inside the app delegate class, to enable the views to access it.
Problem is that I get one page of results displaying correctly inside the tab...
Hi!
I would need to share data (not necessarily a large amount) between a native iPhone app, and a safari/webkit javascript app... Do you know how this could be done ?
I considered sqlite.. But it seems an application can only read/write inside its own bundle (so, not in the webkit databases directory), and the other way, i guess javasc...
I've started a new thread like this:
[NSThread detachNewThreadSelector:@selector(doStuffInThread) toTarget:self withObject:nil];
The thread starts in this method, which performs some delayed stuff:
- (void)doStuffInThread {
[self performSelector:@selector(delayedMethod) withObject:nil afterDelay:2.0];
}
And then, I check in con...
i.e., I am creating a new thread like this:
[NSThread detachNewThreadSelector:@selector(doSomething) toTarget:self withObject:nil];
will this automatically make my app multithreaded or must I do some extra work somewhere?
...
I'm a beginner with Objective C and iPhone development.
It's there any way to call methods from the view controller from any class in my project ?
I began writting a small openGL game, beginning from the EAGLview generated by the default opengl project that Xcode allows me to create. The game so far works well, but I would like to call...
Hey
I have an iphone application using the third party library from my customer. They provide me two static library one for simulator and one for device. How can I change setting to allow me set to project setting to build against right library when project change configuration? can i use --framework flag? if it is, how I can do that?
T...
You might have seen video through you tube in iPhone.
Normal MPMoviePlayerController has previous, next & play/pause buttons.
You tube - player has additional two buttons on it.
=> Add to favorites on the left side.
=> Email this video on right side.
I want to implement the same for my application.
But I am failed to find out the p...
Hi,
I have this code below to populate my UITableView on the fly.
I have to display two kind of cells: a regular cell with a background image and a cell with a regular background image, plus a label and a button.
if Indexpath.row is less than a control variable, then regular cells are drawn. If not, cells with buttons and labels are ...
Hi there,
I'm fetching some data from Facebook Connect (using the FBConnect Objective-C 2.0 framework) and I'm doing all that in an NSOperation. It is in an NSOperation because I have several other operations that run as well and this is one of them.
The problem is that all the FBConnect calls are asynchronous. Because of this, the mai...