I am just trying to get my head around simple view switching for the iPhone and have created a simple app to try and help me understand it.
I have included the code from my root controller used to switch the views. My app has a single toolbar with three buttons on it each linking to one view. Here is my code to do this but I think there...
I'm playing around with jQTouch to create a web app on the iPhone.
I'm using the scrolling extension to create the effect of a fixed toolbar on the top of the page while still able to scroll the rest of the page via a scrollable div.
Everything works fine except for when a user pulls up the keyboard in order to fill in form elements in...
I've seen a bunch of similar questions to this, but nothing seems to be completely what I'm looking for. Do forgive me if I have missed the solution answered in another question, though!
Right. I have a view. 160 pixels both tall and wide. I know that this view is going to be used as a subview, and I know that it always needs to be cent...
How do you sketch out your iPhone App designs and ideas? I am currently about to start my next project and want to find a way to get my ideas on screen instead of good old fashioned paper.
...
I'm having a hard time getting this right.
I've got a UIScrollView, with paging enabled. It is managed by a view controller (MainViewController) and each page is managed by a PageViewController, its view added as a subview of the scrollView at the proper offset. Scrolling is left-right, for standard orientation iPhone app. Works well. B...
I have just noticed that my ViewController does not call init (See below) when it starts up.
-(id)init {
self = [super init];
if(self) {
NSLog(@"_init: %@", [self class]);
otherStuff...
}
return self;
}
Is there a reason for this, or is it replaced by viewDidLoad
-(void)viewDidLoad {
otherStuff ..
...
a friend of mine is trying to create a network traffic compression engine for iphone .. the solution will have a server component likely hosted by the service provider / and will require a client side component that talks to the server ... for this he would need to build a networking client on iphone .. is there a legal way to write netw...
I have tried everything to fix this provision problem and nothing is working. I've reformated my Mac, reinstalled the iPhone, I've also dragged the provisions (developer and distribution) onto the Organizer, iTunes, and Xcode.
In iTunes people say to drag the provisions to the iPhone icon but that doesn't work; it's only able to go unde...
Hey everyone,
I am currently building a module that makes possible to comment a news and as you probably understood, I will need to insert this new comment in my web database.
I know this stuff can be very fastidous so I would like to know if someone has a method which could assure the integrity of the request by checking some of the u...
hello everyone,
I'm a new "developer" trying to build some iPhone app
I'm making an app which gets text from a list of objects in a NSArray and then randomizes them and display one in a TextView, here's the code:
- (IBAction)azione{
NSArray *myArray= [NSArray arrayWithObjects: @"Pasta",@"Pizza",@"Wait",@"Go", nil];
int length = [myArra...
On each cell of my table view I want to have a bar that the user can slide out from the right. On the bar I plan to have icons. So, to do this I subclassed UITableViewCell. On the cell I have implemented drawRect and in there I have already drawn a gradient and background color on the cell. From there, I can create a CALayer, give it...
As the title says. Reordering within a single UITableView is trivial, but the screen of the iPad is large enough to display multiple UITableViews at the same time. So it seems like there should be a way to drag and drop a UITableViewCell between two UITableViews. Any thoughts on the best approach?
...
I am subclassing a UIView and overwrite the drawRect method. I'm noticing that the view's drawrect is only being called when the view first loads. After that it is never called again. How to I make sure it gets called after an orientation change? I've tried calling setNeedsDisplay on the view before and after the rotation and that doesn'...
My iPhone app generally uses under 5MB of living memory and even in the most extreme conditions stays under 8MB. The iPhone 2G has 128MB of RAM and from what I've read an app should only expect to have 20-30MB to use.
Given that I never expect to get anywhere near the memory limit, do I need to care about memory warnings and setting ob...
Hey Guys,
My app has some table cells that vary in height. The cells can also have a UIButton set to be a detail disclosure button (round, blue with arrow) as their accessory view.
Depending on the height of the cell, the accessory view is positioned differently. At first I thought it was my layout code for my cell that was causing the...
Hi there! I'm writing an app that copies some contents of the bundle into the applications Document's directory, mainly images and media. I then access this media throughout the app from the Document's directory.
This works totally fine in the Simulator, but not on the device. The assets just come up as null. I've done NSLog's and the ...
I'm trying to clip/mask a UISearchbar as seen in the image. I know it's possible to clip views in general, but I was having some trouble doing it with a built in control such as this one. Any help would be appreciated.
http://dl.dropbox.com/u/1006208/clipped_searchbar.png
...
I'm using a UITableView to display custom cells created with Interface Builder. The table scrolling isn't very smooth (it "stutters") which leaves me to believe cells aren't being reused. Is there something wrong with this code?
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPat...
Hi,
im pushing a "detailview" to a navigationcontroller (RootViewController.m)
[self.navigationController pushViewController:MyDetailView animated:YES];
"detailview" contains a tableview (DetailViewController.m)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
//push seconddetailview int...
I have a small script that I am try to port to work for serving video data to the iPhone/Blackberry/PalmPre etc.
The code is ridiculously simple:
$type = "video/3gpp"; /* get mimetype from db */
$fileid = "0001"; /* File path from db */
header( "Content-Length: " . filesize( $fileId ) );
header( "Content-type: $type" );
readfile( $fi...