iphone

Adding subviews when Device orientation is face down or face up

Hi, in my project both landscape and portrait orientation is supported, i have a controller view to be added as subview when tap on button. My problem is if user keep device in Face Up orientation or faceDown Orientation and press button weather i have place subview in portrait or landscape mode...? Thanks in advance ...

how to set output device to bluetooth handset in iphone

i want play voice with bluetooth handset in my app.i could not find right function in documents. iphone have a system software that called voice memos.it could play voice by bluetooth handset and also could select output mode. Could someone share solution? sample code better. Thanks ...

Load 100 UIImages

I am busy with an iPhone application. A part of it I load 100 small images from Flickr as an UIButton. The problem is how to handle the memory. it loads around 5-6 mb each time. When I dealloc the view trough navigationController popViewController the memory stays almost the same. What I do now is loop all the images and put the request...

How to get data for UITableViewController in an iphone app

I have a main View that has a table which has it's own controller. How can I pass an array from the main controller to the table controller? (I use interface builder maybe i need to init the view programatically?) ...

iphone save multiple views screenshot

Hi, I have an UIImagePickerController to which I add some subviews that contain images. I need to save the whole content as an image, but fail to do this. For saving the content of the context i use the following code UIGraphicsBeginImageContext(self.view.frame.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UI...

what kind of initialization is this called - conceptual?

Hi all, I have this snippet from apple sample code "LazyTableImages" . In the code below they are initializing the IconDownloader class . So what kind of behavior is this . *************************This Line ****************************************** IconDownloader *iconDownloader = [imageDownloadsInProgress objectForKey:indexPath]...

iphone avoid save state

Hi all! In my app I need to avoid the saving state, in fact, I whis that each time the user starts the app, the app will be relaunced like the first time... how can I do? ...

getting updated receipent and email body information from MFMailComposeViewController class

Hi friends, Is it possible to get updated receipent and email body information from MFMailComposeViewController in iphone sdk manually. And manually sending that data in json web service to my own mail box. Regards, sathish ...

Android UID vs iPhone UID

UID - is unique for every device. But is it possible to determine to wich device it belongs(iPhone or Android i mean) ? iPhone devices are quite standartised - they come with almoust same hardware but Android is almoust on every device(including iPhone in some cases :) ) ...

UIView, hows it working?

Can someone just clarify how UIView works in this context? Is it just part of the view controller (i.e. the view that is part of my ViewController.xib). I was puzzled for a second as it felt like I should have been declaring it somewhere, I wanted to call beginAnimations but was not sure what to call it on. @implementation ViewControlle...

How to make a deep copy of an NSDictionary, the easy way?

How to make a deep copy of an NSDictionary, the easy way? In particular, it's an NSUserDefaults dictionary that contains only property list objects, so objects which are serializable. Would I just iterate over it and build a complete new one with copied values? Guess you guys have a better solution. ...

abstract detailviewcontroller text in its mainviewcontroller iphone?

In my application a maintableviewcontroller and its detailviewcontroller which have textfield & button(save) when i click on button i want to save textfield data into maintableviewcontroller'cell which shows the detailview for this achieving what i do explain in detail? ...

iAds: Removing or adding?

Apple requires you to make your app work nicely, whether iAds are available or not, which makes perfect sense. What I'm wondering about is the transition between those two states. Should I create a view that has a space for an iAd and push it to the screen. If no iAds are available, I then have to remove the ADBannerView once the view i...

UIView in iPhone rotation

My app looks like this: UIViewController -> UIScrollView -> UIView Everything works well when user is rotating device. However, if user rotates device to vertical and then other view is added AFTER user rotated device, new view is still in Portrait mode! Any ideas what is wrong? ...

Calculate custom cell height with multiple views iphone

Hi all, I want to calculate my custom cell height with multiple subviews like labels, imageViews, buttons etc. How do I calculate this cell size? It seems it's not recommended to do it in cellForRowAtIndxPath, also taking an instance of Cell in heightForRowAtIndexPath, it goes in infinite loop. I'm able to calculate the height for c...

Corners from CGContextAddArc are too dark

Hey all, i have little problem with my code. I want to add a footer to a uitableview-section, but that's not my problem. My problem is that i want to have rounded corners on my footer-view, but not on all corners, just the two on the bottom. But the corners are just too dark and i don't know why... Heres my code: - (void)drawRect:(CG...

Switch from XIBs with only one ViewController

Hello, i'm trying to crete an App that works in potrait and landscape mode, with ONLY ONE ViewController. So i've 2 file XIB... how can i select one of them from the ViewController? I've already found how to check if the device is in potrait or landscape mode but i can't switch between the 2 XIBs... :( Please help me! Thanks! ...

Objectiv-c Soap request to a .Net Webservice

hi, i am programming a client in objectiv-c for the iphone which should use Soap for the communication with the .Net server. I have a big problem and hope that somebody can help me. I send a request with no errors and get a response, but a false response. in my request i put paramters calles "wo"(= where) and "was" (=what), but the resp...

detect rotate gesture and scale gesture iphone sdk

Hello all, I want to rotate the uiimageview also scale the image view so how do i detect touch gesture that user is scaling or user is rotating? ...

UIPicker as Subview

Hello, I'm trying to add a UIPicker as a subview, but can't quite figure it out. I've added a second UIView control with a UIPickerview to my nib (NewWorkoutViewController.xib). My code is as follows: -(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)thePickerView { return 1; } -(NSInteger)pickerView:(UIPickerView *)theP...