iphone

Easy Programming - an Objective C syntax question

Hi All, Two Complete newbie questions about programming in ObjC - using ideas from other languages I've used in the past. It'd be great if such concepts existed in ObjC, but all the info I've been able to gather so far is all about the simple stuff like "for" loops, etc. Question 1 Is there a way in Objective C of evaluating a variabl...

playing audio files from table, iphone

I've created a list of music file names in an array which is used to populate an uitableview. I want to make the audio player take this array or table as the playlist and play them continuously one by one, with all the features like play, pause, next, previous, forward, backward and stop. What is the best way to implement this. All the m...

Detecting with code if your iPhone app is live vs test

I was wondering if there was a way within an app code to determine if the app is real (in the iTunes store) versus test? The reason is that I have every part of in app purchase resolved. However when verifying the receipt you must send it to either https://buy.itunes.apple.com/verifyReceipt if live or https://sandbox.itunes.apple.com/ver...

How can i check an iphone device is jailbroken or not?

Can any one help me out for checking an iphone device is jailbroken or not. It is very helpful for me if you provide the sample code for that. Thanks in advance. ...

Having Problem in adding UIButton to UIScrollView...

Hi I am trying to add the UIButton to UIScrollView. I have added the UIImageView with background image (size: 320 * 620). Then I added this imageview to UIScrollView, and It works fine. But now I want to add UIButton at position at : (60, 500); (below screen that would appear after scrolling). I have tried following code, but the butt...

i cannot see movie playing in iphone simulator

Hi, i have created a application that plays movie on button click..my application is running without any warning or error. But i am not able to see the movie don't know why? I have added the Media player framework and also imported the #import in viewController.h my button action code is as follow... -(IBAction)playMyMovie:(id)sender{ ...

Content Font in UIWebView

Hi all, in my app im making use of UIWebView to load html page.When i change orientation from potrait to landscape mode content font changes it increases.If i tap on any of link the new request loaded in lanscape mode content font wont change.How to fix this. ...

How to do something before applicationDidFinishLaunching

Apple allow us to define our own Logo image from simulator launch to execute applicationDidFinishLaunching end. Now I want to do something between Logo on screen to IPHONE display the first view. I don't know how to do this. Thanks everybody who help me ...

Need to run Iphone app on simulator without using xcode.

I need to distribute my app to be tested using iphone simulators. So I built the binary and whenever i try to run the app by double clicking on it, The app crashes with the error Dyld Error Message: Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit Referenced from: /Users//dev/iphone_workspace/MD2final/build/Ana...

How to do something as application load Logo image

I want to do something as apple load Logo image(Default.png). Is there any way to do this? ...

how to animate image on shake effect?

I have implemented game application.In which i want to animate some area of images on shake effect.How it possible please give me advice. Edit: My excatly query is that: In my game application there is one image.Now i am selected some area frame of image.now i am shaking iphone then only selected area of frame image must be animate. ...

combining live recording audio in another audio file iphone sdk?

Does someone knows how we can combine our current recording into another background playing music? I need some sample code for this. I want to create something like karaoke application in which we can record our voice over an instrumental music. ...

Forcing a WWAN connection on iPhone, even when Wi-Fi is available

I need to make a network connection over WWAN (i.e. the mobile network) on an iPhone, even when the device is connected to a Wi-Fi network, however I can't find a way to do this. I've tried going down to the socket level and iterating through the available interfaces, however when connected to Wi-Fi, the WWAN interface (pdp_ip0) disappe...

NSInteger to binary (string) value in 8bit format

Hi Jarret Hardie (thanks !) post this code yesterday to convert a NSinteget to binary, and works perfectly, but i need in 8bit format: 4 -> 00000100 any ideas to modify this code? // Original author Adam Rosenfield... SO Question 655792 NSInteger theNumber = 56; NSMutableString *str = [NSMutableString string]; for(NSInteger numberCop...

iPhone: Resize CALayer sublayers in view

Hi! I have set up a UIView and added a couple of CALayers as sublayers to the view's layer. Is it even possible to resize the sublayers along with the view? When I resize the layer by setting a new frame only the view's layer gets a new size, but not the sublayers. I set the setNeedsDisplayOnBoundsChange to true for the layers as well as...

Is it possible to use something like an IBOutlet array?

I have a top list view in my current iPhone app, that's populated by code. I've assembled the view using Interface Builder, so it contains lot of UILabels. Obviously I wouldn't like to have name1, name2, etc. outlets in my class, but prefer a name[10] array. Is it possible to do so, and connect each item to the appropriate label? ...

Enable copy and paste on UITextField without making it editable

I want the text in a UITextField (or ideally, a UILabel) to be non-editable, but at the same time give the user the ability to copy and paste it. ...

iPhone: Minimum OS, Deployment Target & Base/Active SDK

I'm a little confused about building an app for the app store and for the correct SDK & OS version. I have submitted my app to the app store, and in the app details screen of iTunes connection it says: "Minimum OS Requirements : 3.1.2" I haven't seen any apps on the app store that have 3.1.2 as the min OS, they all say 3.0. I read seve...

How to put a cancel button on the locate me tab ?

Hi all , I am developing a location aware application with five tabs. In the application I have a tab called "locate me" .Tapping on it shows near by things . After tapping the locate me it first finds the location then based on the location it fetches near by things from the web service and then parses with the nsxmlparser and then ...

iPhone OUTBOX like table design

Hello, I would like to do a design similar to iPhone outbox. It displays 3 lines of text in a single column. The first line is large and bold, the second line is of normal size and font and third one is grey color. Also a time is displayed in the first line with a different font color. I know to create a two line display using subtit...