shouldAutorotateToInterfaceOrientation is definitely being called... but when I rotate the iphone... or the simulator... nothing changes.
I thought all I had to do was this:
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
NSLog(@"this is being called ok");
return(YES); // Or retu...
I am building a book where I will use the page curl animation to flip the pages, something like this:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.45f];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:NO];
[UIView commitAnimations];
I will use curl down or up, accord...
I have a detail view for a contact. The last field is a Textview that can be as short as 1 line and as long as 20. in the viewDidLoad method I use:
scrollView.contentSize = self.view.frame.size;
My problem is that when the data is displayed, the scroll view scrolls to the bottom on its own. Obviously I would like it to start at the to...
Hello,
I having trouble with app that uses my static libs. Here is my setup:
I have 3 libs, Utilities, Share and Misc. Share and Misc depend on Utilities. They are compiling just fine when I compile them separately. Every lib is in its own XCode project.
I want to build an app that uses features from Utilities and Share, so I added the...
Hi Im trying to fetch an image from a blob field in a database and trying to insert into a UIWebView.
thus far the code is
-(void)prepareHTML{
imageBlob = [fp fetchImage:storyRowID]; //*****fetches the image blob data. returns an NSData*
if([imageBlob length] <= 0){//****if there is no image data fetch it from the url and update row ...
I have big problem with my app on the iPhone.
It's extremly slow. ( I run it on the simulator, but on device it's even slower)
I'm using the newest Xcode and run it on the 4.0 simulator.
When I render 10 quads, I have 60 FPS.
When I render 30 quads, I have 30 FPS
What's going on?
Here's my render function
(void)render
{
// Replac...
Hi all,
I am writing a simple iPhone application and I am wondering if there is something equivalent to C#'s try{}-catch{}-finally{} exception handling.
I have come across a few references via google, but I am having trouble figuring out what the actual syntax is on the iPhone platform.
Does anyone know of a very basic example on ho...
I am trying to use two different Core Data Models in a iPhone application, I created and correctly set up the first Core Data Model that uses SQLite as persistent object store. This one works very well and the pre-populated default store loads correctly in a Table View.
Now I want to create a different Core Data Model with a different p...
I have two apps which share a lot of source, so I want to put them into one Xcode project and use Targets to build them seperately. Some of the source files have the same name in both projects (for example, MapViewController.h and MapViewController.m). I thought as an intermediate step, I'd just put the whole classes folder into the merg...
I'm using ibtool to localize nibs. I exported string files, translated them, and now trying to apply translated strings back to the nibs using ibtool once again. It works for the most parts except that for some files (about 25% of all nibs) I get the following error:
Couldn't open shared capabilities memory GSCapabilities (No such file ...
Using an NSPredicate, you can fetch only certain rows from Core Data using a subquery, e.g. SUBQUERY(records, $r, $r.length > 10).@count > 0. Is there a way to actually fetch the aggregated data from the subquery as a fetched property?
...
Hi all,
I was wondering what my project settings should be in case I have a universal app that I am now updating to 4.0.
The Base SDK is iPhone Device 4.0
iPhone OS Deployment Target is iPhone OS 3.0
What should I enter in the Architectures, Build Active Architecture Only checkbox and the Valis Architectures for the different configur...
hi
is it possible to launch the "Photos" application out of an iphone app? Similar to launching mail?
[[UIApplication sharedApplication] openURL:url];
...
Hi
I need to know the distance (in kilometers) from center map to the other side of the screen, (and if the zoom change the distance will change).
I need to implement this feature in this function
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated{
}
Any ideas how i can do this?
Thanks
...
I need to show different "titlebar" for application, depending on situation. The problem with iOS4 is that black opaque UIToolbar looks so much different that black opaque UISearchBar. Have I messed up some settings or is there some work-arounds to make UIToolbar and UISearchBar use more similar coloring?
These are overlapping in real...
Hi all,
I set the UIApplicationExitsOnSuspend to boolean and checked the checkbox, so I assumed that
- (void) applicationDidEnterBackground:(UIApplication *)application
is not called - but I always get into that method when I click the home button in my simulator. Am I doing something wrong or can I be sure that the app will behave t...
Hi everybody,
i have a problem using dataWithContentsOfURL.
I'm loading some images from the internet in a loop.
The Problem is: if the image at the URL doesn't exist, dataWithContentsOfURL does NOT return nil as expected. The apple reference says it returns nil if NSData could not be created.
Here's the Code:
NSString *TermineImgFile...
In a table view I use custom UITableViewCells with dynamic height. The layout algorithm is complicated since there are not only dynamic text blocks but also images with different height. When the appropriate heightForRowAtIndexPath is called the teble view cell has not been rendered do far. Do i have to calculate the height twice? Once f...
I've encoded a few videos on http://www.theparkerpalmsprings.com to play using HTML5 when loaded via an iPhone or iPad. In my testing, everything works as expected when viewing the site on an iPhone (I've tested on a 3G and iPhone 4), but when loading on the iPad the Quicktime logo flashes quickly and then nothing happens. Is this a prob...
Is there an alternative or new stuff in iOS4 that resembles TTPickerTextField
I am looking for a way to recreate the "new mail" control view and I've read about TTPickerTextField. Three20 is my last option (especially as it has no iPad version) and I wanted to know if iOS4 gives some new UI controls to do this.
...