Now I've seen loads of websites that look great on the iphone, such as http://twitter.com and http://deviantart.com however I can't for the life of me get the right structure within my mobile web application to make it show up as if it was an iphone application.
I've discovered iphone jquery ( http://jqtouch.com ) which seems to be the ...
Hi all,
I have an NSArray of (Product) objects that are created by parsing an XML response from a server.
In the object, it has images, and text, and ints, URLs. etc.
There are 2 requests to the server
1: list of matching products from a search - small amount of detail
2: product details: the full details.
When the second request i...
Is it possible to return a list of all the properties implemented by an object in Objective-C?
I understand the properties are just getters and setters so I'm not sure how it would work. If this cannot be done, then is it possible to return all the selectors that an object will respond to? I'm looking for something similiar to the "metho...
I can not seem to figure out how to count the number of seconds to 6:00 pm for the current day. Need it to set the limit of a date picker so that the user can only pick a time from now until 6pm.
Working with NSDate seems to be painful at best.
...
Consider this code:
NSNumberFormatter *nf = [[NSNumberFormatter alloc] init];
nf.numberStyle = NSNumberFormatterCurrencyStyle;
NSLocale *l = [[NSLocale alloc] initWithLocaleIdentifier:@"it_IT"];
nf.locale = l;
[l release];
nf.decimalSeparator = @",";
nf.currencySymbol = @"US$";
[nf setLenient:YES];
NSString *s = @"US$ 0,05";
double d =...
hi, there is a method called viewDidLoad that execute a code when the view is loaded is there a method that do the samething but each time the view is shown?
...
I want to make a simple app, where a UIWebView with custom content will have several links to other pages with similar content as well (and a navigation bar on top, with just a back button).
I read the answers to this question, however I'm not sure if I should do that in my application, as the user might be able to go deep enough, and I ...
Given the UINavigationController delegate methods:
-(void)navigationController:(UINavigationController*)navigationController (will/did)ShowViewController:(UIViewController*)viewController animated:(BOOL)animated
How do you tell or compare which view controller instance is relevant to the event?
I am developing an app that renders tou...
Hello,
I'am currently migrating an iphone application using SQLite to CoreData.
I need to do an INSERT or REPLACE to add only the new content, is there a way to do this or do I have to fetch all the DB and look for existing objects and add the new ones ?
Thanks.
...
I am a little confused by this snippet of code (presented in the CocoaFundamentals guide) that overrides some of the methods when creating a singleton instance.
static id sharedReactor = nil;
+(id)sharedInstance {
if(sharedReactor == nil) sharedReactor = [[super allocWithZone:NULL] init];
return sharedReactor;
}
.
+(id)alloc...
Hey all,
my problem is that i want to rotate the uiimageview of a uibutton.
The transformation itself is pretty easy:
super.imageView.transform = CGAffineTransformMakeRotation((M_PI*120)/180);
(I subclass a button, but it doesn't work with a normal button either.)
So, it rotates but looks not very pretty: http://img534.imageshack.us...
Hi all,
I have a Core Data-based app that keeps records of purchase receipts, and I'd like to know if I can send one specific record (i.e., one row from the SQLite table) from one phone to another via email or whatever. I'd like to have a button that says "send a copy of this receipt to so-and-so" that would email the record that could...
Hello all. I am developing an app which plays interactive real time streaming video. I use FFMPEG (don't worry, I'll be releasing my source code) to decode a MPEG2/H264 RTP stream. I simply cannot get the iPhone 3G to draw a screen full of pixels faster than 5 times per second.
I've tried a OpenGL texture which was just a slow. I've...
My scrollView has a drag/zoom -able containerView. The containerView is parent to a UIView subclass of my own design that can respond to tap and drag. My problem: scroll/zoom of the containerView is now total crap, with scroll/zoom sometimes just ignoring swipe attempts entirely. It feels as if touches are now confused as to who is runni...
I'm trying to parse HTML data using KissXML for iphone. I've noticed that I can't have dashes in the id() tag, otherwise it won't evaluate. For example, if I'm trying to get the element at I would do
id("foo")
However, if I try to get at element , and I try
id("foo-bar")
the libxml2 XPATH engine doesn't seem to return anything. It w...
Hello,
I have created a CPScatterPlot using Core Plot and have several lines on the graph:
for(int i=0; i<nLines; ++i){
CPScatterPlot *xSquaredPlot = [[[CPScatterPlot alloc] initWithFrame:graph.frame] autorelease];
xSquaredPlot.identifier = [NSString stringWithFormat:@"%d",i];
xSquaredPlot.dataLineStyle.lineWidth = 1.0f;
xSqu...
I've been reading the Head First iPhone Development book and I understand how to get to a new view from a table but how exactly would I be able to get to a new view or view controller, by just simply pressing a button? Is that even possible?
I mean there are some apps where you click a button, not a table cell and it loads a new view. ...
I'm eiter a bit overwhelmed by the complexity of NSDate or I simply don't understand the concept of it :)
the only thing I want to do is to create an NSDate Instance representing todays date and a fix time of 20.00h respectively 8pm.
this can't be as difficult as creating an Instance holding the current time and afterwards either subtr...
Is that possible to make a UIToolbarButton pass an object to its target by using some exoteric method (as it seems not to be possible using regular button use)?
I mean something like
UIBarButtonItem *Button = [[UIBarButtonItem alloc] initWithImage:buttonImage
style:UIBarButtonItemStylePlain target:self action:@selector(doSomething:) ...
I have a UITableViewController. In viewDidLoad I set the rowHeight:
self.tableView.rowHeight = 43;
But then in cellForRowAtIndexPath, I check the height of the cell:
NSLog(@"bounds: w = %f, h = %f", cell.bounds.size.width, cell.bounds.size.height);
This prints a height of 44 and a width of 320. Anyone know why it would print a he...