iphone

how to set different brush patterns iphone.

I set brush pattern using CGContext and Bezierpath..........On UIImageView....... is this approach is good. Do we have any other best approach to set brush pattern, to create different paint brush pattern. Do any body have different designed pattern... so i can apply to my brush. Thanks in advance. ...

Xcode - OpenAL - Getting the current time of a playing sound

Hey everyone, I was wondering if someone could point me in the right direction to creating a function in my openAL singleton class that returns the current time of the sound. Any Ideas? Thanks! (Current time 'while the sound is playing') ...

Embedded PDF links with Quartz

I want to display my PDF using quartz on iPad. Quartz does not seem to recognize the embedded links though. Is their a solution to this? ...

Using iPhone as a TCP and UDP server - open ports?

Hey, I need to send and get packeges via UDP and TCP in iPhones and the server. But, I figured that if I wanna send pacgages to a client (iPhone), he is... A kinda server. So, let's say I'm sending and getting packeges to iPhone via the port 2347. Do I need to open the port on the iPhone or something like that? Is there any Firewall buil...

How to speed up TDD flow with iOS and Objective-C/Xcode

Have been searching for experiences on TDD with Objective-C and iOS development. Previous post about "string calculator"-kata in Objective-C was useful (thanks). But it would be nice to learn even more fluent iPhone-TDD. Do you have some experience of how to use UISpec (based on Rspec), iCuke (based on cucumber) or similar tools? An...

UIActionSheet Crashes on iPad / not iPhone

When I look in the console I get this message 2010-09-18 17:04:05.284 Wasted Time[8998:207] *** Assertion failure in -[UIActionSheet showInView:], /SourceCache/UIKit_Sim/UIKit-1145.66/UIAlert.m:7073 2010-09-18 17:04:05.286 Wasted Time[8998:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'I...

How to display a person record just after saving his data to iPhone Address Book?

this is my code and it works flawless, where my_value is a string with separator ','. everythign works fin but i'd like to display the person record from the address book after i saved it, so in the function if(isSaved) { // **** code here *** } here the complete function - (void) addToAgenda: (NSString*) my_value{ ...

Add zoom to scrollview...

How can i add a zoom function to my scrollview in Potrate orientation, when the images are in an subview controllers. in orientation change i call a setup function to change if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) || ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRigh...

cell.imageView is working on Simulator but not on Device.

Table view cell imageView is working on the simulator but not on the device.. Some things I have checked. I have not changed anything in the code. Image is added to the project and in same folder. I have one more cell image which is working fine. Thank you in advance. ...

How do I parse this SOAP response in my iPhone application?

I am getting SOAP response and when parsing the response I am getting this: (As you can see from result which is currently stored as NSString is NSLoged itself contain xml format data) <Menus> <Table1> <Restaurant_Name>CHICK-FIL-A</Restaurant_Name> <Restaurant_id>2748</Restaurant_id> <Phone>(404) 371-1466</Phone> <billing_city>DECATU...

Center text in a UILabel

How do you center the text inside a UILabel? ...

how to implement swipe in table view iphone

i have a table view. i divided it into 3 sections. i want to implement swipe in this tableview. when i swipe in table view, next view will be loaded. How to implement this? Thanks in advance ...

Edit 2 uitextfield by turn with a select in uipickerview

Hi, I have 2 uitextfield and 1 uipickerview. uipickerview is able to update data into uitextfield in didSelectRow:(NSInteger)row inComponent:(NSInteger)component. But how to update 2 uitextfield from uipickerview by turn when user touch the uitextview? Thanks. :) ...

Static Library iPhone NSKeyedUnarchiver Error

Hey guys, I made a custom Static Library that I use in my iPhone project. Everything works great except for when I use an NSKeyedUnarchiver to unarchive some data. It throws an exception when I try and use it in the library. I tried copying the classes of my static library into my project to see if that would work and it works fine but t...

SSH Connect to Mac using iPhone SDK for Remote Login

I wonder if anyone has succeeded in connecting to a Mac using an iOS Device via SSH (Remote Login) to access terminal and execute commands. I know that this is definietly possible as the Mobile Terminal App accomplishes this perfectly. I am trying to implement this connection in an iOS4 Application. Does anybody know the code to do this?...

Is there any sensor in iPhone can Detect the Temperature of the air?

Getting cooler these days, thought it's a good idea adding some temperature function in apps, anyone knows iPhone has the hardware to support that? ...

Managing iPhone app sandbox tmp directory size for caching images

I have a fairly image-intensive iPhone app, and I'm looking to store remotely downloaded images locally in the app's sandbox tmp directory to avoid unnecessary network requests. Is there a limit to the total size of the files stored in an app's directories, or does the app need to manage that? How would the app determine the size of the ...

navigating a .Docset file in iphone app

I want to use a Docset i have created using Doxygen in my iPad app in a tableview, and navigate through the directories. then display the file i click. How would i go about navigating the Docset? i can unzip it, then navigate the directories in that manner, though i'm certain there must be a way of using the file as is and then being ab...

iPhone - Problem with Distribution Certificate

I'm trying to publish my app to the app store. I followed the Apple instructions to create the Distribution Certificates and Provisioning profiles and added them to my XCode Organizer. When I select Project > Edit Project Settings and check the 'Code Signing Identity - Any iOS Device, my DistributionCertificate/Profile appears correctl...

How to play multiple audio files using AVAudioPlayer

Hi All, In my application, I am displaying multiple images in rows and columns when i click on a image i will play corresponding sound using someName = [someName stringByAppendingFormat:@".mp3"]; [audioPlayer stop]; NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/%s", [[NSBundle mainBundle] resourcePath],[someName...