iphone

UIImageView switching setContentMode random EXEC_BAD_ACCESS

Hi, I'm using an UIImageView and UIScrollView inside UIViewController to show images. Actual Size and Fit to Screen options available at the toolbar to let user switch between modes. While switching between modes I am getting EXEC_BAD_ACCESS error randomly. Randomly means I can switch to Actual Size mode to Fit to Screen modes copule of ...

MFMailComposeViewController send the email!

hello all, So I am trying to send an in application email on the iPad using the MFMailComposeViewController. However, everything I am reading shows how to set it up and get it ready, but not how to actually send it! I have the delegate all set up and handling the button clicks, but am not sure how to say "Now go send the email". Can...

Debugging in mobile browsers?

I'm developing a web-application using HTML5 canvas and I need to debug in mobile browsers. Normally I'm using firebug in Firefox and the built-in developer tools in Chromium for this, but I need to do some of the same on the iPhone and on Android-based phones, like the HTC Hero. ...

Will a Safari-based app for iPhone be accepted to the iTunes store?

I'm about to begin development of an iPhone app. The app itself is fairly basic, and I want a speedy turnaround time. I'm a web developer myself, specialising in traditional web technologies such as PHP/MySQL; I have no experience in Objective-C. My plan was to create a very basic iPhone app that is just a Safari service that passes s...

Can I make a UIScrollView only scroll when i interact only with specific places in the view? UIScrollView iPad

I have a UIScrollView wich contains 2 views the first at offset 0 and the other at offset 800. I want the user to be able to scroll down but not always, because in the upper view i have another controls tha receive touch input and dragging and sometimes when you are dragging if your touch is just a little bit out of the control the scrol...

UIImageView display in front of navigation bar?

Hi there... Is there any way to display an image infront of the navigation bar? I know this is a little bit messy - but its just an asthetic thing. The imageview takes up more height than the view and therefore needs to overlap the navigation bar a little bit. Is this possible at all? It must be. :) Thank you ...

NSCFString countByEnumeratingWithState:objects:count: ERROR while searching NSMuttableArray

Hy Everybody, i have the following situation. I have an NSMuttableArray filled with an xml file which I want to search. When I enter something in the searchfield I get this Error: "-[NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x5b388b0" What does it means and how can I fix it?!? I s...

iOS Bluetooth Keyboard Detection at Runtime

Is there any way in iOS SDK to detect the presence of an active Bluetooth keyboard? As many well know, when a Bluetooth keyboard is active, the on-screen keyboard does not show, so interface placements might have to change... Right now I am doing this semi-passively by responding to keyboard events, but those notifications are a little ...

Cocoa-Touch: UIWindow not rotating some subviews

I have an iPad app that is set to start in landscape mode. From what I read, the UIWindow itself doesn't need to be rotated, instead it will apply a rotation transform to all of it's subviews when the device is rotated. My application has a UINavigationController which has the app's views, and above it a custom MenuBarViewController wh...

How to port an app from old iPhone to iPhone 4? (Retina Display)

Hello world! Sorry if im asking something stupid but please dont shoot me down! I have done a little playing in xcode but nothing more than a button press counter kindof thing.. I was curious.. when developing with the retina display in mind you obviously produce higher resolutions png's and what not for the new display.. How would y...

UILabels don't look good in the landcsape mode

I am writing a game in the landscape mode. In *.plist I've set the "Initial interface orientation" option to "Landscape (left home button)". In Interface Builder my form seems good, with 2 labels are on the left and bottom. But when I launch the app in simulator or in iphone that looks like the following http://www.glowfoto.com/static_i...

Interface design

A client of mine asked for a basic version of an iPhone application to work with, and has been happily using it for 2 months now. Now he wants me to implement the full version but I'm having trouble finding a good interface to make it both visually attractive and practical in use: I should use a completely different tab-bar at the botto...

Iphone User Location without manually running app

I need to read the iPhone users location using google maps, but I don't want the user to have to run my app to do so. It doesn't necessarily need to be tracked constantly, but I might want to check the user location every 10 or 20 minutes. Ideally this feature could be turned off or on by the user, but the most important part is that I ...

Present a default view instead of tableview if datasource is empty

Hi everyone, The iOS app I'm currently working on is tabbar-based, and one of the tab is a UITableViewController. The thing is, when I open this tab with an empty datasource (for whatever reason), I'd like to bring another view, with some kind of message/image, instead of the blank view I get with the tableviewcontroller. I tried some...

Full settings missing in iPhone Simulator 4.0.2?

I believe I remember running the iPhone Simulator (perhaps version 4.0) on a macbook some months ago and was able to get to the full settings (mail specifically) them. Now, having installed the iOS4 SDK and running the 4.0.2 Simulator, I do not see the "mail, contacts and calendar" settings regardless of whether I choose the iPhone, iPad...

AVFoundation Camera Preview Screen gives wrong zoom

Hello all I'm currently developing an app that has a camera functionality, with a custom camera screen, featuring a preview screen and an overlay. I'm using the AVFoundation classes and methods as per the eradication of UIScreenCapture. The problem I have is that the preview data I get from AVCaptureSession is too zoomed in. If i take...

Cocos2D game element design

Hey Guys, My question is as easy as that: What is the best method to create character for example in Cocos2D? Here's an example: I want to create an enemy of my "Ninja". The enemy has a strength of 0.5 and a speed of 50. How would you implement this? A subclass of CCSprite or CCLayer or something completely different? I tried with...

Managing multiple viewcontrollers with views displayed in a sequential way - should I use NavigationController?

Hello, I have a number of viewControllers (iPad) that manage different views presenting various screens to the user (start screen -> settings screen -> main screen -> details screen -> summary screen). Those screens are being traversed sequentially (as arrows above indicate) based on user interaction.One exception to that rule is that I ...

Best alternative to AudioServices on the iPhone

Hi, I'm using AudioServices to play a sound in my app: AudioServicesCreateSystemSoundID (soundFileURLRef,&soundFileObject ); and then AudioServicesPlaySystemSound (soundFileObject); The sound plays but because I need to play it frequently (its 0.24 seconds long) I get a strange unnatural sounding repetition. You can hear it at http...

Moving an UIView when UIButton is pressed

hi, my view hierachy is following: BigView - UIScrollView - View 1 - View 2 - View 3 - UIView - UIButton now i want, that when i press the UIButton, the BigView (which includes the button as well) moves 100px to the top (so parts of the BigView aren't visible any longer) and another UIView gets visible at the free space under...