Running Instruments on my iPad app found 2 leaks, except I cannot understand where they are coming from. The first one is in this method in my app delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[window addSubview:self.viewController.view]; // <--- it leak...
I've created a web app (using Sencha Touch, but that's not important) which I'm trying to get offline. It's a slideshow with images and a video.
When online, it plays an mp4 video using the tag in HTML .
I can take it offline using a cache manifest file, which works fine for all other content, but my video won't play when offline.
I've...
I have created 3 files for the app icon: Icon.png, Icon-72.png, and [email protected]. [email protected] shows up fine on the actual iPhone 4. The simulator, however, only uses the 57px version. With the iPad neither the simulator nor the iPad itself uses the Icon-72.png file. Only the 57px version.
Help! :)
...
I created a custom class that inherits from UIView and I want to display an instance on the screen. However, when I try to link the outlet from the App Delegate to the object I dragged onto the screen (which is that custom class I created) the link cannot be created.
What am I missing?
...
Hi all:
Just got my iPad yesterday and I wanna start programming a distributed game between iPads for a little community across the globe, so no blue-tooth.
I've heard of the XMPP protocol to enable data exchange between two PCs, such like this thread on SO
Basically, the approach is a decentralized solution, once a valid connection ...
This picture shows what i want , i just making a custom movieplay controller.
I know how to make a custom uislider as code below
playSlider.backgroundColor=[UIColor clearColor];
[playSlider setThumbImage:[UIImage imageNamed:@"sliderButton.png"] forState:UIControlStateNormal];
[playSlider setMaximumTrackImage:[UIImage ima...
I have this code:
void getStringWithTag(char* pFile, long sizeSound, char* tag, char* ret, float* currentPos){
char* tagCopy;
tagCopy = (char*)malloc(256 * sizeof(char));
int totalLen = 0;
int tempLen = 0;
memset(tagCopy, 0, 256);
memset(ret, 0, 128);
pFile += ((int)*currentPos);
while (totalLen+(*currentPos) < sizeSound) {
if (*pFi...
Hello everyone, I want show per page pdf in portait mode and display two pages when rotate to landscape mode on ipad . I had search on internet and can't find any solution. I thought two possible way.
1.Using webview but I don't know how to display two page in one webview in a webview.
2.Using CGPDF API read from two page and merge...
I'm probably not doing this correctly. Having not done an iPad app before I'm doing what seems natural to me.
I have a UIView that is going to be made of up other UIViews. Specifically, I want to dynamically create and add subviews to each of these subviews. In other words:
UIView
|
| --> UIView
|
| --> Dyna...
What is the way to read PDF content on an iPad or iPhone?
...
Hi guys,
I have an app that runs on iPad and iPhone running iOS 3.2, but when I try to install it in the simulator it freezes - unresponsive interface (a UIAlertView at this point), no console messages, no crash logged. When I step through, it gets all the way through applicationDidFinishLaunching and then stops with this list of calls:...
I'm trying to add a menu item next to the "copy", "paste" items in a UITextView. I've created a subclass of UITextView and copied the example from apple's docs here:
http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/Text/Text.html#//apple_ref/doc/uid/TP40009370-CH8-SW28
I simply created a ...
Hi,
In my iPad app, I am presenting a modal view controller with the UIModalPresentationPageSheet style. Today, randomly, when I presented the modal view controller, the page sheet was rendered without the white background, leaving just the shadow:
I have not made any changes to the view controller that is being presented, or the vie...
I have an iPod touch and iPad with gcc installed on them. However, everytime I try to compile my programs they always fail. I am trying to write c programs for the terminal, not GUI. I am missing the standard c/c++ libraries (stdio.h, etc.). Can anyone tell me where I can find these libraries?
...
So I've upgraded the code to the ipad (i.e. converted to a universal app). However, the UIAlertview rendering seems to be off for IOS4. Instead of being positioned in the middle, it jumps up and is displayed on top, with half the box cut off. Same goes for landscape orientation.
It is my understanding that the UIalertview is always set...
i am now doing a ipad app which only has landscape view. normally when i do a portrait view i just use a rootviewcontroller.view and addsubview in the root view. and using delegate to tell rootviewcontroller to remove it when switching views.
i've already set the info.plist so that the only accepted orientation is 2 landscape mode. and ...
i read out that Goodreader application use .webarchive format to display pDF.Is .webarchive is supported by ipad and iphone
...
Hi,
I have the same problem as this guy had :
http://stackoverflow.com/questions/2332214/setting-the-active-executable-in-xcode
I'm pressing the "option" key, and it does add more options, i'm choosing iphone simulator 3.1.3 , but when I press "run" , still the ipad simulator is running.
The problem only appears when I choose "Iphoe ...
We have a simple view based application we're building for the iPad. We're doing a custom UI so everything is being done programmatically. At the moment our view heirarchy looks something like this:
UIViewController -> UITableViewController -> TableView
We want to transition to the UITableViewController's TableView when an event fires....
I'm testing one of my iPhone apps on my iPad in "2x" mode, so it stretches everything to double-size. I've noticed that some text appears to be smoother than others. From my (limited) testing, text in a UITextView or UITextField that is being edited (has keyboard focus) is smoother than a plain UILabel hanging out in a view. I'm not s...