Hi guys,
This is kind of weird, but I noticed that up to 40 percents of the rendering time is spent inside glAlphaFuncx. I know that alpha testing is very expensive, but the interesting thing is I do not use it :) No single place of code uses alpha testing, neither do I invoke this function in any other way.
I also checked GL layer for...
I am trying to save voice recordings and transfer those files to my FTP server, typically ranging from 200kb up to 75 MB in size. I anticipate infrequent mid-session internet disconnections or app being terminated or the user inadvertently pressing the home button. Just wondering how to set up resume of transfers without having to start...
In my application I use lots of images based in interface builder. The problem with this is that it uses large amounts of memory because interface builder caches it much liked "imageNamed" so I've begun removing the image from imageViews in interface builder and instead adding them once the view starts using "imageWithContentsOfFile". Af...
What is the difference between Search Bar vs. Search Bar & Search Display Controller?
...
I have two views and I want to present the second view from a method in the first view. My code works in an IBAction method, but not from one returning void. Is this a known issue, if so is there a workaround?
My code is as follows (I already declared "scores" and -(void)win in FirstViewController.h):
// In FirstViewController.m
-...
I have a japanese PDF document that I'm trying to render correctly on the iPad.
I'm using the following code:
CFURLRef pdfURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, (CFStringRef)pdfFilename, kCFURLPOSIXPathStyle, false);
CGPDFDocumentRef pdfRef = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
CGPDFPageR...
Here one for the record.
When working on my app and zooming in/out, the mouse scroll sometimes ONLY permits me to zoom out but not in.??!!
I can move around by making bumping...yes...bumping either the top, bottom, right or left sides of the screen.
Eventually, I clean the caches, force quits on XCode and Safari and then reboot. Some...
i am having table view which is present when i press a button and when i select any of the rows of table view i want to change button text with that content of cell text in table view...
so i want to pass description which is string to the called function and i have to recieve it in main view where i have to change button text with this....
Hi!
I need to be able to catch touch events on a UIWebView and still be able to use the webview's contents (html links, etc...)
I have subclassed UIWebView and implemented methods:
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSe...
I am loading up a plist file and creating buttons based on this file. These buttons can change at any point during the application running (which will trigger an update of all the buttons etc).
One set of buttons represents a list of categories. So I may have a house button, car button, etc. No matter what button is pressed it will c...
Hi everyone,
I am working on my first iPhone app and making good progress. But there is one thing I just don't understand.
When my app starts it displays a UIView with some functionality on it. This works fine. One of the buttons on that screen is supposed to load a new view (HistoryViewController) which contains a navigation controlle...
Hi there,
I am looking for a way to turn off the iPhone screen without the iPhone going to sleep. I don't really mind if turning the screen off is against apple rules. Would setting window alpha to 0 do the trick? Is there maybe some sort of boolean value I can change?
If anyone has an ideas they would be much appreciated.
Many thanks...
Kind of a noob - but learning, so I'll try to explain the best I can
iphone app with 5 tab buttons
click on a tab button (ex. SPONSORS) it loads navigation controller
click on a image and it loads a web view
webViewController.myWebURL = myWebURL;
[self.navigationController pushViewController:webViewController animated:YES];
everyth...
How would I program an iPhone app that utilitizes bluetooth SPP to connect to another bluetooth device? I can't find the documentation anywhere.
Thanks so much.
EDIT
I guess Mac OS X uses RFCOMM but i can't find anything similar in iphone documentation
...
I have an iPhone application which is based on the "Window based application" template and which uses a main view with some embedded subviews.
For some action I need a confirmation by the user. Therefore, I create an UIActionSheet and ask the user for feedback.
The problem is, that the action sheet does not show at all. Instead, the sc...
Does anyone know how to do this?
Is anyone able to provide an example? I believe this is out of NDA now as was available in version 4.0 ?
...
I use MPMoviePlayerViewController to make a moviePlayer. But, when I click the "done" button, or cancel the player, the memory used always increases. Why??
...
Hi,
when i add new entries to my settings bundle root.plist file, build and run the app, the new settings are not visible within the app. I've of course used a unique key for the new entries.
In my root.plist file in the xcode project the file shows the changes, but when i get the current file from the iphone via the organizer, the cha...
Hi,
I'm listening to the UIDeviceOrientationDidChangeNotification in order to adjust my UI based on the device's orientation.
The problem is that the device orientation I'm getting from the notification seems inaccurate. If I start with the phone in portrait orientation and vertical (as if taking a picture with it) the orientation I g...
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Delete Today's Data"
otherButtonTitles:@"Delete Week's Data",@"Delete Month's Data",nil];
Is there an easy to have more than 1 red "destructive button" in an i...