Hi,
I have a button that, when pressed, presents a view controller to the user. I currently do this using a method like this:
ProjectViewController *myProj = [[ProjectViewController alloc] init];
myProj.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
myProj.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigati...
How AutoReleasePool working in iphone? And when will be the objects released?
...
Each time I build an iphone application, I found myself writing the same code over and over again: generic string || text || choice editor controllers.
Imagine a tableview showing some data that I want to edit. When I click a string field (short text), I open a generic string editor controller, with a tableview with 1 cell, and a keyboa...
Version 3.1.3 if its relevant.
There is this suggestion which may work now, but in the future?
NSString *device = [UIDevice currentDevice].model;
if([device isEqualToString:@"iPhone"])
...
Hi,
First some background:
The company I work for have decided to create an iPhone App for our main product and nominated me to do this work. I've been a professional C# developer for over 5 years and although I have used other languages (Java, C++ etc), I have not used them to a professional standard and not for many years. As for M...
I'm writing an iPhone/iPad app using OpenGL ES.
I'd like to select (or pick) one of the 3D objects by tapping.
In OpenGL, there seems to be the way using glSelectBuffer() and glRenderMode(GL_SELECT) for this purpose, but these are not available in OpenGL ES.
How do I select an object in OpenGL ES?
I saw the same questions in some for...
In my iphone app, I have a sqlite table with latitudes and longitudes of USA(All weather stations of USA) . What is the sqlite query to check whether given latitude and longitude is in a set of lat/lon in sqlite?
I mean I have the lat/lon set of New York as (42.75,73.80),(37,-122) but am searching with a lat/lon which is near New York, ...
I currently add objects to an array with a label taken from the textfield input from the user.
At the moment it adds an entry even if the field is blank.
I assign the textfield to a string and then want to check if it is nil, if it is then dont add it to the array.
I am used to java where it could be done with something like
if(enter...
i have to convert NSDictionary object into NSData and further i have to get the same NSDictionary out of NSData object.How should i go about it?
...
NSPredicate *pred = [NSPredicate predicateWithFormat:@"firstname contains[cd] %@" argumentArray:firstNames];
NSArray *ar = [contactList filteredArrayUsingPredicate:pred];
What I want is to filter the contact list matching the values in the firstNames array. But this always results one element even if there are multiple matches?
...
Hi guy,
I want to create an UIImage of UIWebView and then I want to draw that image.
Here is my code:
UIView *tempView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 768, 1004)];
tempView.backgroundColor = [UIColor blueColor];
UIGraphicsBeginImageContext(tempView.bounds.size);
[tempView drawRect:tempView.bounds];
UIIm...
i'm including an alternate stylesheet for iPhone/iTouch devices. Initially i wanted to simply use the handheld media type:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='/css/homepage_handheld.xsl' media='handheld'?>
<?xml-stylesheet type='text/xsl' href='/css/homepage.xsl' media='all'?>
which i add to t...
I'm going in circles here. I have set shouldAutoRotateToInterfaceOrientation for all the view controllers. My app is running correctly in landscape, like this:
However, when I add a new subview using [window addSubview:whatever.view]; it shows up like this:
How can I make the new subview automatically be added in landscape orientatio...
"I'm trying to get iPhone to play nice with all my work calendars that sync over exchange.
My personal calendar works great with adding/remove events. However, my department calendar which is in a public folder does not show up at all. Anyone know a work around?"
When last asked a year ago the answer to this question was that it wasn't ...
Hi guy,
I want to create an UIImage of UIWebView and then I want to draw that image.
Here is my code:
UIWebView *tempView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, 700, 1024)];
[webView loadHTMLString:@"Display This String" baseURL:nil];
UIGraphicsBeginImageContext(tempView.bounds.size);
[tempView drawRect:tempView.bounds]...
I have tried the various techniques described to serialize a plist I need in order to save the favorites of the user.
Some people also say it is better to save that data into the "user defaults" file.
Which is the better technique and how are they serialized. I have this code
[plistArray writeToFile:filepath atomically: YES];
which...
This code leaks, if someone can tell me why?
UIGraphicsBeginImageContext(drawingImage.frame.size);
[drawingImage.image drawInRect:CGRectMake(0, 0, drawingImage.frame.size.width, drawingImage.frame.size.height)];
// Draw some vectorial data
// ...
// Apply an image mask
CGImageRef maskRef = mask.CGImage;
CG...
Hi,
while building a small RSS Reader for myself I discovered, that the iPad Reader Pulse or the Google Reader let you search RSS feeds simply by entering a keyword. So, there is no need to know the RSS URL. How can I integrate something like that in my own Reader? Is there some kind of web service that provides such a search?
Thank yo...
How can i get the timestamp of when an application was compiled for iphone
At the moment I've got this method on my app delegate
- (NSDate*) compiledAt {
NSDateFormatter *k= [[NSDateFormatter alloc] init];
[k setDateFormat:@"MMM d yyyy HH:mm:ss"] ;
NSString *dateString = [[[NSString stringWithUTF8String:__DATE__] stringByAp...
Following on the heels of this question, I'd like to know how to remove the magic numbers in lines like:
CGRect pickerFrame = CGRectMake(0, 40, 0, 0);
closeButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f);
[actionSheet setBounds:CGRectMake(0, 0, 320, 485)];
or
UIDatePicker *theDatePicker = [[UIDatePicker alloc] initWithFrame:CGRect...