iphone

Fastest way to handle UIImagePickerController compression

What's the fastest way of getting a picture into a SQLite data store for compression, so I can return control to the user? I'm using UIImagePickerController to take pictures in my application. The problem is using the picture is quite slow, because of the speed of UIImageJPEGRepresentation. I want to push JPEG compression into a backgr...

setContentOffset:animated: shows view background

Hi, I have a UIScrollView with with different view controllers for each page inside it. When I use setContentOffset:animated: to scroll to a different page I can see a white line between the pages. This white line doesn't appear when I scroll by dragging the UIScrollView. Has anyone seen this problem before? Any idea of what I might be...

iPhone: How to remove all data stored in core data for a given entity type?

I cache some data from the server locally using core data. Mostly I have to update one or two records in local storage. But sometimes I have to clean my cache for some data type (and there are other data types that I don't want to clear). I don't see a good way to do it. It is clear that I can fetch all objects for given entity type, exp...

how to set default name & company name on comments in Xcode?

When we add a new file, In .h & .m file, there is always a comments/documentation section at top. example. // // SimpleGameAppDelegate.m // SimpleGame // // Created by hbmac2 on 01/10/09. // Copyright __MyCompanyName__ 2009. All rights reserved. // Here, there is by default hbmac2 - is user name & MyComapnyName is also default. ...

makeKeyAndVisible & makeKeyWindow - uiwindow in iphone

In every application, there is always written as [window makeKeyAndVisible]; What is mean by makeKey? ...

Re-used UITableViewCell showing old UIImageView for a moment then switches to correct image.

So I've built a custom cell for a UITableView. My subclassed UITableViewCell has a UIImageView in it. When scrolling through the table view, as the new cells appear, the "left-over" images from the dequeued cells are shown for a moment until the new image loads in it's place. I've tried [cell.myImage setImage:nil] but that doesn't s...

implementing GCMathParser on iphone

hello, i am trying to use the GCMathParser for an iphone application and i cannot find any support on implementing this framework. people keep saying its easy and im kinda confused, any help would be great thanks! ...

Is Apple's iPhone SDK 3.0 CoreDataBooks example broken?

I've come across this issue in my application, and have reproduced it using Apple's CoreDataBooks codebase with 0 modifications to the code. The problem is if you make an edit to a managed object, and save the context, with the result being a section with only one row now having no rows, and a new section created with the resulting objec...

ccp & cpv - function difference & full form of cocoa

I have following code in my Application. I am new to game development in iPhone using COCOS. Sprite *bg=[Sprite spriteWithFile:@"menu.png"]; [bg setPosition:ccp(240,160)]; [self addChild:bg z:0]; [self addChild:[GameLayer node] z:1]; } return self; } @end @implementation GameLayer -(id)init{ if(self=[super init]){ Label ...

Xcode and Subversion error 210002 - (but connection ok)

Hi to all. I am using XCode 3.1.3, and subversion 1.4.4 on a remote machine configured on a LAN. 3 users are connecting to a subversion running svnserve and a single repository. Yesterday we had somo issues on our lan connection and couldn't work on the repository but each one worked on the local copy (so no commits, or updates could...

What is the easiest way for a c# programmer to develop for i-Phone?

Should I use Mono + c#? Or I'm better off learning and using objective c? Thanks ...

How do I make a UIScrollView zoom to size of UIImage ?

Right now, when I double tap the UIScrollView I run this code (taken from Apple's own example code): #define ZOOM_STEP 1.5 float newScale = [imageScrollView zoomScale] * ZOOM_STEP; CGRect zoomRect = [self zoomRectForScale:newScale withCenter:tapPoint]; [imageScrollView zoomToRect:zoomRect animated:YES]; However, I have set the maximum...

Applying brightness and contrast with OpenGL ES

I want to change the brightness and contrast of a texture on the iPhone. I've been looking at the sample provided by apple (GLImageProcessing) but it only is able to do one at a time (calling both methods in the sample overwrites the previous result). Brightness works great: glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); i...

Which mobile platform would be more rewarding to learn as a developer (iPhone vs Palm Pre vs. Android)?

I am interested in getting my feet wet in PDA/mobile development. The only two drivers for me are the drive to learn cool (or at least, new) stuff, and may be to code some app that I felt I really needed but lacked. As such, I would like to know what the comparative benefits/downsides would be for me as a developer in choosing one of t...

how to creating localizable.strings file by code in iPhone

Hi, I am working on one multilanguage project which will download string from server depend on language selected by user. I would like to save this downloaded string into localizable.string file. So how could I do that? I know how genstrings works but I would like to generated *.strings file by code and save it. My code will read this *...

Moving an ImageView within the inner-Boundry of a subview

Good day all; Firstly, either a process or pseudo code is hopefully sufficient to my question (obj-c code is very welcomed if you can spare the time and effort). I have a UIView the contains many subviews that represent a path to travel along. These subviews (notionally) have a border and hence an inner boundary in which a sprite's mov...

Archiver Securing SQLite Data without using Encryption on iPhone

I'm developing an iphone app that uses Core Data with a SQLite data store and lots of images in the resource bundle. I want a "simple" way to obfuscate the file structure of the SQLite database and the image files to prevent the casual hacker/unscrupulous developer from gaining access to them. When the app is deployed, the database file ...

UIView. How do I place a subview behind it's parent superview

I'm doing a bit of UIView wrangling and am stuck. It is straightforward changing the "z" order of sibling subviews. [mySuperview sendSubviewToBack:mySubview] places mySubview behind all it's siblings. But how do I place a subview behind it's parent? Thanks, Doug ...

Mobile Website Markup Tags?

Hey, Seems like an easy answer to find .. however I have spent hours searching with no luck. What are the official tags that developers are supposed to use on mobile web apps? Like <callout><phone><map><address> Does w3c have an official list? ...

Syncing issues using GameKit

I am trying to make a simple two player snake game that uses gameKit to send movement information back and forth. I start the game out with the server sending a command to start the game. Once the game starts a timer fires every .5 seconds that moves the snakes. No matter what I do I end up with the timers on the two iPhones firing at di...