ipad

cache video content for offline iphone/ipad web apps in mobile safari (html5)?

i have seen a few (discouraging) questions related to this subject but I am still not clear on the answer. is it possible to cache video content for immediate playback in an offline web app on the iphone or ipad? (i believe that there is a 5mb limit for any cached file.) can videos cache the same way other files can, using the manife...

Saving Quartz drawings rendered over PDF on iphone OS

In my app I am displaying PDF pages and want to allow the user to "mark up" the document by freehand drawing on top of the page. I can handle the Quartz code for doing the freehand drawing, but what approach can I used to save these "mark ups" so that they can be re-displayed over the page the next time the user loads the PDF into the a...

Crash when manipulating a simple Core Data object

Hello. I'm diving into iOS development and I have a few questions about manipulating a simple Core Data object that I created in Xcode. After using the object editor, here's the class that Xcode generated for me... @interface Alarm : NSManagedObject { } @property (nonatomic, retain) NSNumber * Enabled; @property (nonatomic, retain...

UIScrollView still receives scroll events underneath a UIButton

I have a full-screen UIButton to capture all touch events, so that the scrollView underneath doesn't scroll. However, for some reason, it's not working. Can someone tell me a way to create a view that will capture tap and swipe events so this won't happen? Thanks! ...

iPad Orientation Question - One Orientation or All four - can't just get two to work.

Hey there all, I've got an iPad app that I absolutely need to have in just landscape, I know the situation on the suggestions but for this app it needs to be landscape. Now here's my problem. I have editted my .plist file to support both landscape left and landscape right in the appropriate manner and have put an autorotate snippet in...

UISearchBar + UITableView +UINavigationController issue

This is a followup to this question: http://stackoverflow.com/questions/2770330/uinavigationcontroller-uitableview-uisearchbar-uisplitviewcontroller Is there any way to make it so the solution above doesn't make it unfilter the results? In my case you see the entire list pop back up (during the animation) when you deactivate the search ...

What is the difference between a popup and a popover (i.e. NSPopupButton vs UIPopoverController)?

I was just wondering why the name popover was chosen vs a hypothetical UIPopupController. ...

Why is my CGContext clipped to bounds?

Should I be able to override drawInContext() and draw outside the bounds of my CALayer? Even though my layer has maskToBounds set to NO (the default) my drawInContext() is called with a clip set to the bounds of my layer and I am unable to draw outside of it. My test layer does something like this: -(void)drawInContext:(CGContextRef)co...

How can I convert a NSString representation of a time value into two NSInteger's containing the hour and minute?

Hello. I'm diving into iOS development and the Objective C language and am building an alarm clock app to become familiar with the SDK and language. I have an NSString object that represents a time, with the range "1:00 am" to "12:59 am". I need to convert this NSString into two NSInteger's that contain the hour value and minute value...

Playback decompressed G.711 mu-law audio on iPhone

What is the best way to playback decompressed G.711 mu-law audio in iOS? Thanks, Rob ...

Why won't my iPad app project "start" in landscape mode out of the box?

This is a weird question inasmuch as I've definitely had projects that work fine, possibly because I've been doing something differently. But now I'm confounded. I create a new View-based iPad app with Xcode (3.2.3 fwiw). This gets me a default view controller with a default view which gets unarchived and displayed at startup. When I ...

iphone - how can I get a leak with this alertView?

this is on the main code: NSString * title = NSLocalizedString(@"myTitle", @""); NSString * cancelTitle = NSLocalizedString(@"dismiss", @""); NSString * otherTitle = NSLocalizedString(@"noMoreTips", @""); NSString * message = NSLocalizedString(@"myMessage", @""); [self ShowAlertBox: title : message : cancelTitle : otherTitle]; This i...

How can I prevent the display on an iOS device from dimming and turning off?

Hello. I'm diving into iOS development and am building my own alarm clock app to become familiar with platform and SDK. I've noticed some alarm clock apps in the app store keep the screen from dimming and/or turning off when their app is running. How is this implemented? Thanks so much in advance for all your help! ...

Why isn't Quartz double buffering my drawInContext()?

I am rendering a simple line drawing (a line with some text in the middle) in a CALayer subclass via drawInContext(). I update this layer as the user is performing a gesture by calling setNeedsDisplay on it. The effect that I am seeing is what I might expect if there were no double buffering going on... i.e. I see parts of new renderin...

sharing NSManagedObjectContext and other service classes between iphone/ipad tabs

Hi geniuses out there, I am well into building a Core Data tab-based iPad application. I am passing in my NSManagedObjectContext to my root view using the following in my app delegate class. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.rootViewController.man...

why did my app use a high real memory?

My app is a client what can watch videos online. I test my app with Instruments,i selected Leaks,ObjectAlloc,Memory Monitor from library of Instruments.I find that All Allocations Live Bytes is just 9.33 MB,but it's 81 MB in Memory Monitor,told me this process use a lot of memory.And when i play a movie,the usage still comes up ,but th...

How to increase height of UIProgressView

Hi, I am creating UIProgressView from nib, i want to increase its height but it is fixed to 9. For iPad i need to increase its height How it can be done. Thanks in advance. ...

How do I use javascript control ipad to scroll uniformly (without friction)

I would need to listen to onscroll, and know how fast it is scrolling. Any one have any ideas how this should be implemented? By using onmousedown and onmouseup? And how should I calculate the speed? ...

why did my app just used about 36MB memory but i still receive low memory warning?

i use instruments to track my app's usage of memory,in memory monitor,i find that real memory is below 36MB ,and most time it just 32MB,but i still get warnings low memory in organizer and crashed. Incident Identifier: CFEF044E-E839-4DB7-9ED6-E22CD92B9171 CrashReporter Key: 80954447762f1882da7df309d5493cf8647f4c8b OS Version: ...

Latex port to the iPad

How hard could It be to have the Tex engine and consequently latex compiling documents on an iPad? Is that a fool idea? Is there something already done? I saw a Latex app on the app store that claims to be able to typeset documents through a link to a home always on dropbox server. This is not the solution I'm thinking to. I'd like to h...