iphone

How can i split an image in to multiple parts ?

Can any body explain me how an image can be (equally and unequally) split in to multiple parts in iPhone OS. It is very helpful to me if you provide sample code. ...

Application crashing on iPhone

Hi All, I am developing an game in which i have to load images on finger swipe. For this i loaded all image 22 of size (788x525) at loading of the view itself. Then on finger swipe i just added image on view. This works fine on iTouch but on iPhone game crashes after showing near about 12 images. This is how i added images, graphicsAr...

Objective-C Sprite Class (iPhone SDK)

Okay, just for starters, I am very new to Objective-C, (C in general). I am not new to programming, and I've found the transition seamless so far, until now. I'm trying to implement a Sprite class I found online in order to develop a game on the iPhone, but I'm getting many errors. For example... size = CGSizeMake([image size].width , [...

"collect2: ld returned 1 exit status" Error Iphone SDK. Please help me

Hi everyone, i am new Mac and iphone SDK. i writing basicly a game application. and i want to update and show game score using SQLite. i searched in web for my problem but i didnt find any solution for me. error is: Ld /Users/Iphone/Desktop/IDRGame/build/Debug-iphonesimulator/IDRGame.app/IDRGame normal i386 cd /Users/Iphone/Desktop/ID...

Extracting localization strings from Settings.bundle plists

If you are building child panes in your Settings.bundle, you'll end up with several .plist files. When it comes time to localize your project, you find the creation of the corresponding .strings file a bit tedious (I know I do). Here's a handy list bash script which will (i) find tags, (ii) extract the contents of the following tag, ...

xcode can't find a standard c++ include file

When i mix .m and .cpp i have a problem with xcode not finding the default cpp include (like <map>) update: i'm adding a static lib in my iphone project (which does compile without any problems) and then use the include inside the .m, then the dependencies .h from c++ gets crazy..can't find or can't compile, i tried the .mm but it does...

How can I make only the button selectable in a cell?

I have a Cell with lots of Labels and a Button. I want to make cell's color blue and make only the button selectable, not the cell. The button should have its own color. How can I do this using with xCode and the IPhone SDK? ...

How to create a UITableViewCell with a transparent background

Hi, I'm trying to set the background color of a UITableViewCell to transparent. But nothing seems to work. I have some images/buttons inside the tableViewCell and I would like to make the white grouptableview background dissapear to get a 'floating' effect for the images and buttons (as if they were not inside the tableview). Any idea ...

Why does my iPhone application crash right after 1 hour?

My iPhone application is crashing right after 1 hour is passed (I am using development prov. profile). Is there any limitation of development prov profile? Is it related to memory leaks? But why exactly 1 hour? ...

is there a notification when "slide to unlock" has occurred

I have an iphone game that plays background music using AVSoundPlayer - when someone locks the iphone the music stops which is fine. But when someone unlocks it, I don't want my music to start playing again while you're staring at the "slide to unlock" screen - I want it to start playing once you've actually slid the button and the app ...

My iPhone Simulator 3.0 AddressBook is empty!

Anyone know how to repopulate my Simlator's AddressBook with Johnny Appleseed, etc? Or, my own data. Doesn't matter.. It's just that it's somehow empty now and useless for testing. ...

iPhone SDK: Long animations with "animationImages" problem.

Hello, I have been trying to set up an animation in xcode for a long time now, At first I started trying to animate 100 1000x1000 pngs, but those images were too big for the iphone, now I am trying to animate 100 320x480 pngs and it seems to animate fine up until about 40 frames in, then the app crashes, so, is there any other method of...

Uploading images to iphone withou resizing

Hello! I want to create application that does something with users images that he can import from his computer. Problem is I need those images in original size. When I try to copy them through iTunes sync, they are resized to 640x480 or something and this is unacceptable for me :( Is there some setting in iTunes or iPhone that I missed ...

AVAudioPlayer - Drop in Framerate

Hi. I have a quick question: I am loading a mp3 file into a NSData object and then I play it using the AVAudioPlayer in my game. Every second or so, the frame rate drops and you can see a stuttering on the screen. It is not a major slowdown, but clearly noticeable and disrupting to the gameplay. Not playing the music track with the AVAu...

AnalysisTool / Clang results: ivar naming convention violation

AnalysisTool (a Clang GUI front end) states some fo my ivars are improperly named: Specifically: the name of instance variable 'groupName' doesn't start with the 'm' prefix What does the 'm' prefix stand for in Cocoa? Should I be using it? Or is this a false positive. ...

textViewDidBeginEditing not firing due to zoom

I have a UIViewController subclass that is acting as the delegate for a UITextView. I implemented textViewDidBeginEditing to display a 'Done' button to dismiss the text view... all is well... except that when the text view has text and is not in edit mode, if a user holds a finger in the text view causing the text to be zoomed with the ...

Is the distribution provisioning profile associated with the iPhone device?

I installed the distribution (for Appstore) provisioning profile in Xcode, but it doesn't show up under Devices, only the Developer provisioning profile shows up. I cannot "Build and Go" with the distribution provisioning profile in Xcode either, however, "Build" does work. Is this the correct behavior? ...

Code signing entitlement and Code Signing Resource Rules Path for building iPhone

What's the code signing entitlement and code signing resource rules path in the build settings mean? If I am building the Distribution for App Store for an iPhone app, do I need to specify these? Someone mentioned that the code signing entitlement needs to be specified, but I was able to build and code sign with the distribution provis...

iphone wifi/3G connection drop problems

Hi, I know that iPhone shuts down its WiFi connection after 30 mins. Is there any way to keep it alive? How about 3G connection? Does it shuts down its 3G connection after 30 mins? Is there any way to keep the 3G connection alive? Thanks. ...

How can I refresh UIImagesViews differently?

I'm hoping someone can steer me in the right direction. I need to be able to update images on the screen one at a time after a button is pressed. It appears that they only get updated at the end of the cycle which is not how I need it to work. I created a little example to show what I am doing. Basically I have 3 images on the screen...