iphone

Basic Objective-C: Why does this code work?

Question 1) I have a navigation based application where clicking on an entry opens a second view with the details of that entry. It's working now with the following code [self.navigationController pushViewController:descriptionController animated:YES]; [self.descriptionController.textView setText:[s description]]; self.descriptionC...

Contents of UIScrollView shifted after dismissing ModalViewController

I have a paged scrollview. Each page has a viewcontroller (buttonViewController) that manages a grid of buttons. If you press one of the buttons, the buttonViewController pops up another viewcontroller (detailViewController) modally. The problem is, when I dismiss the modal view controller, the visible buttonViewController is shifted do...

How & where to set up DB Server and communicate with iPhone

I'm working on iPhone app that will let users upload/download photos to/from a DB server along with some data associated with each photo. While I do have experience with iPhone programing, I do not have much experience with DB and server side programing. Does anyone have any tips on what would be the easiest way to set up DB server...

AVAudioPlayer to play short sounds on my iPhone?

Hi, I want to use AVAudioPlayer to play short sounds... because I have more control than System Sound. I have several buttons which are hooked up to play several different short sounds. Each sound file is about 1.5 - 2.0 seconds. Everything works fine ...except ...I have to wait for the sound to stop before I can press the button and ...

PVR compression on iPhone - any tips for 2D sprites?

Hi, I'm making a 2d game and am using 64x64 textures to draw my characters. It basically looks like super mario brothers, each character has about 10 frames that make up their entire animation sequence. The pvr tool sounded promising, it crushed my images down to 4kb each which was great. However the quality is very poor. I don't think...

Running Xcode console

I want to run my iphone app with Instruments to check on memory usage, but I also want to be able to see my Console output as I go along. Is there currently no way to do this? You can only seemingly start either Instruments or Console in XCode itself. ...

load image in web view from a .html file

how can i load an image in iphone webview from a .html file? is there any one whoo help me???? thanks aamir ...

How to make tabel view as a content ( book) reader

I have a 4 cell in a tableview coming data from the SQLlite data base . Now I want to have UITable view as a book reader means if any buddy swipe it, next 4 elements come into the Table view and when reverse back is goes back to previous data . The data is has fixed 4 cells . Also how to make transitions in the table view . Please ...

[iPhone]: How send output stream via wireless network?

I want to write an app for a certain type of printer to print some text via wifi for iPhone. iPhone can join an existing wifi network by the Settings app, but how to create an output stream for the network so that the app can use it to send command to printer? I mean the wifi connection is set up already, how to get something like NSOu...

How to write prepared statements for SQLite in iPhone

How to write prepared statements for SQLite in iPhone? Is it possible to do SQL Injection in iPhone apps that use sqlite db? ...

UIWebView scrolls jerkily

I need to use a website with quite a bit of content in my App via UIWebView. When I scroll the page in Mobile Safari everythings scrolls smoothly. Even if I scroll fast - the grey squared background appears but is rendered properly after a few moments (less then 0.5 seconds). The same page in UIWebView scrolls jerkily if scrolled fast ...

iPhone working with tree library ?

Does a library exist to work with trees for iPhone ? ...

How to install iPhone application in iPhone Simulator

I have a mySample.app file - an iPhone application developed by xcode. How do I run this (only mySample.app file) application using my xcode? ...

Simple Animation with NSTimer and opacity for the iPhone

Hello, I just want to realize a simple animation, where a picture is faded in a few seconds after the beginning of the application and then it should be faded out and totally disappear. I've never done any animations on the iPhone so I'm stuck. When using something like image.opacity = 1.0; like in the Developer Documentation I get: erro...

FMDB transaction

Hi ! I use FMDB to wrap SQLite in my app. I haven't found any docs about the use of methods begin, beginUpdates, commit, finalize, etc. I face some problems in my apps which i think are caused by the way i use transactions. Here is what i tried : [FMDB beginUpdates] - My insert statement - [FMDB commit] [FMDB finalize] it crashes wi...

Bad response code when uploading image with Twitpic API

Can anybody familiar with the source code for uploading image to Twitter using "Twitpic api" please tell why I get a 0 response code when I am trying to upload an image? Here is my code: - (BOOL)uploadImageToTwitpic:(UIImage*)image withMessage:(NSString*)theMessage username:(NSString*)username ...

Storing optional NSNumber in Core Data

In my core data model, I have an entity with an optional NSNumber attribute. How do I test to see if the value in that attribute is valid or not? When I test for nil... doesn't work. [self numberAttribute] == nil // always returns NO When I test for a zero value int, that doesn't work. [[self numberAttribute] intValue] == 0 /...

How to alter the effect which is apply?

Hi all, I create one Layer on which I add One Sprite (Image of grid). I use Ripple3D effect to that layer. I want original layer (layer before applying effect). for that I reverse that effect but it don't show the original Layer. please guide me to solve this problem ...

MPMoviePlayerController movie length

Hi everyone, The question is - how to get the movie length from MPMoviePlayerController object? I need this to create a progress bar. I have the method [myPlayer currentTime] to move progress bar while movie is playing. And the [myPlayer setCurrentTime: doubleVal] to rewind the movie. But I can't use all this without information about ...

Are there any examples of iphone ebook apps?

I want to write an iphone application for a standalone ebook that lets users read and also favourite different sections. Is anyone aware of any samples or examples? ...