iphone

iPhone Documents directory maximun size

Hi! I'm just wondering due to new personal project which is the limit (in MB or GB) of documents directory of my app. I just wanna save a lot of photos, so, has documents directory a limit for archiving downloaded photos? Will Saving 300MB of photos produce slow downs on 3G? If there is no limit, I think that limit shoud be the 8 16 32...

AdvancedTableViewCells code example problem

So apple has this pretty cool example about how to make a uitableview which cells resemble appStore cells. Code can be found here. Now, the strange thing... I was playing with it, and in RootViewController.m where it was - (void)viewDidLoad { [super viewDidLoad]; // Configure the table view. self.tableView.rowHeight = 73.0...

iPhone Web App -- Links launched via "Home Screen" mode

Hi, I have an mobile web application that I'd like users to be able to use on "home screen mode" (that is, adding it as a bookmark to the homescreen, and then launching the web app via the home screen button). However, this seems to behave differently than if it the web application was accessed via mobile Safari. For example, whenever...

NSArray vs array

is this OK practice? NSArray* myarray[3] = {nil,nil,nil} ... myarray[0] = some NSArray or is it better to stick with NSArray over all? NSArray* myarray = [NSArray...] ? ... [myarray addObject:..] ...

CLLocation Heading Delay iOS4

After [locationManager startUpdatingHeading]; locationManager.headingFilter = kCLHeadingFilterNone; (void) locationManager:(CLLocationManager*)manager didUpdateHeading:(CLHeading*)newHeading { heading = newHeading.trueHeading; heading += -90.0 * roll; NSLog(@"heading"); } I get the heading once and then there is normally a 20 second...

Distinguishing development iPhone app versions

I like to keep a store-bought version of my iPhone apps on my phone so that I can reproduce any customer issues that come up, but I obviously also want to run the most current development version. I can install both (one from iTunes, one from xCode) but I'm interested in ways that I'm better able to tell the two apart. I could just chang...

Need color to build a custom UIButton to put inside a UIBarButton.

I need to build a custom UIBarButton. Most of what I have done works except that I can't get the color of my button to match the iPhone UIBarButton. How can I match it? Here is what I have: (mostly ripped from Elements sample project) UIButton *localFlipIndicator=[[UIButton alloc] initWithFrame:CGRectMake(0,0,50,28)]; self.flipIndicato...

optimizing a web design for the iPhone

OK, I'm having some issues with my site's mobile stylesheet on the iphone. I reworked the stylesheet to be similar to what http://m.facebook.com give the browser, only I'm getting an issue where the Safari on iPhone browser is still zooming the page out from like 960px, instead of constraining it to the native screen resolution. What giv...

Using a single view for multiple NSManagedObjects.

So I have a couple properties that are common across several of my Core Data entities. Notes, URL, etc. I have a single view controller for editing this information, and I pass the Entity to it as a NSManagedObject @property (nonatomic, retain) NSManagedObject *editedObject; @property (nonatomic, retain) Thing *thing; @property (nonato...

Changing tint color of TTButton

Hey guys. Right now in my application, I have a TTButton. I am setting the color of the TTButton initially using stylesheet like TTCatalog. it's like [TTStyleSheet setGlobalStyleSheet:[[[CustomBadgeButtonStyleSheet alloc] init] autorelease]]; [code for initializing ttbutton here]; And then there is a class called buttonStyleSheet in t...

How to cache lines to a CGLayer? iPhone Programming

Hello there, I'm having performance issues when drawing with CoreGraphics in my iPhone application, the Idea is to draw a line with the finger. Every suggestion I could find on the internet targeting this problem was: "cache the lines to a CGLayer, so that the application doesn't have to redraw all those lines over and over again". No...

error:path is not a working directory

while i am working on xcode i am getting this error which does not allow me to add files to svn.. i have project i my svn and after i checked out i did some modifications to that and when i am trying to check in to svn it does not show me "commit" option and at bottom of xcode is showing error:155007 path is not a working copy /shows m...

How to use a database on the iphone

I have been thinking of saving data using dictionaries and arrays etc. Would it not be more efficient to use a database and just read and write to it rather than running through arrays, getting keys and values, blah blah? It will need to hold a lot of text that is it. How is the database setup and used on the iphone? Also , if one wri...

Continue task execution in background

Am I missing something here with Multitasking feature. I know we can execute a task in background, but what I really need is that task continues execution when app goes in background. So what I need is different than starting a new task in background. If images are being loaded in a view and user presses the home button to make the app g...

Using ASP.NET, how can I create an iPhone/Android specific mobile website?

I would like to take our current mobile website and redesign it for iPhone use. All of the code on our website is currently run server-side and is split up in multiple pages, but I would like to get all the client-side features like transition animations and iPhone-like buttons that jQTouch offers. Where should I start? ...

NSTimers and triggers in Obj-C

I want to start an NSTimer at viewdidload and then execute a few void functions at specific intervals. How do I do this? Thanks! ...

Returning Back to Table View After Exit from Safari Browser

How do get back to your table view when you are done with the safari browser so that it wont have to exit the application and anytime you access safari, it will just take you back directly to your last table view not exit the application ...

animation in ipad app

I want to do some animations with the 2d graphics, pretty simple stuff but a little more involved that transformations. I could accomplish this easily in after effects and output a .mov or gif but is there a way to play this in a view within an ipad app? What's the best way to go about animations? ...

setting image to navigation top and ottom bars

i am having rootview controller in my navigationn controller and if i want to set a image to my bottom bar and top bar in my root view controller using programmatically .. how to set it ? plz any bidy help me out ...

Does the iPhone offer a good Cryptographic API/Service Provider?

How extensive are the Cryptographic options offered by Apple for the iPhone OS? Does it have public key infrastructure support? Can the Keystore (or I guess keychain) be leveraged by third party applications and are they able to pull/store private keys there? What about support for the LDAP for pulling user's public certificates? ...