iphone

IB not responding to UIImageView moving

This an incredibly annoying bug. I had a imageView and 2 Labels in a customCell nib. I changed the locations of all of them in the nib and the labels moved, view didn't. I've cleaned my targets, deleted everything relating to it the library, deleted the cell completely, reset the simulator, built it on a different target (3.1.2) and it ...

Using iPhotoGallery in a tab bar based application

Hi, I need to use a photo gallery similar to the one iPhone uses. For this I have downloaded the iPhotoGallery source code from google svn repository. (http://code.google.com/p/iphotogallery/). I need to know how to use this project in our own tab bar based application. i.e. I want to load the thumbs view when I go to a particular tab i...

How to invert arrow image placed before the first cell when tableview cells are swiped beyond first cell?

Hi all, In my application, I need to add this functionality that there should be an arrow image upside down placed before first cell and some text like "Pull down to refresh" and when user pulls the table beyond this then this arrow gets inverted and text changes to "Release to refresh" and when the user releases his finger, the data is...

UIBarButtonItem Image is not shown and instead a white rectangle in the size of image is shown, Why?

With whatever image I try to intialize the UIBarButtonItem, its just showing a white background in the size of the image. Even when I tired in interface builder, the result is the same. All these images when used with other objects works perfectly. How can I solve this?? ...

objective-c iphone XML parsing one element

I know that when parsing XML with objective-c most of the time you use NSXMLParser. But what if you only need to read one element. Using NSXMLParser sounds like an overload to me. The issue is that flickr API doesn't use JSON as response when uploading an image. So my response now is: <rsp stat="ok"> <photoid>4638598522</photoid> </rsp...

How to get return type DONE in keyBoard numberpad mode

We should get DONE button in Numberpad when we have textField.keyboardType = UIKeyboardTypeNumberPad; ...

dynamically add uitextfield in the uiscrollview in iphone

i have an array of some values and i want to dynamically create textfields for all the string objects inside the array and add it to the scrollview.. how to do it.. ...

iphone PC TCP/IP connection

Hi I'm looking for the faster and easy way to connect the iphone to the PC with IP/Port connection. Anyone has a good idea? thanks in advance Gilad ...

set array into table view?

hi all, now when i started accepting answers and my accept rate is getting better, i hope,some1 will help me out now. here is how my xml looks like(i m callling xml using JSON) > <shishir> <english> <0>a</0> > <1>aa</1> <2>aaa</2> <3>aaaa</3> > <4>aaaaaa</4> <5>aaaaaaa</5> > </english> </shishir> now what i want is ...

Scroll UITableViewCell above keyboard for small tableview

I have a tableview which is added to a UIViewController as the tableview only fills the bottom 3/4 of the screen.The rows contain editable UITextFields. When a field is tapped, the keyboard appears but the table does not scroll upwards as would normally be the case. Consequently, the keyboard obscures the field being edited. I have tried...

iPhone:How to set background image for tablerow cell?

Hello all, I want to put some background image for TableView row cell. I am using the following code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ..................... ................... UIImage * backgroundImage = [UIImage imageNamed:@"cell.png"]; UIColor *background...

New CATransform3DMakeRotation deletes old transformation?!

I added a CATransform3DMakeRotation to a layer. When I add another one it deletes the old one? The first one: [UIView beginAnimations:@"rotaty" context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelegate:self]; CGAffineTransform transform = CGAffineTransformMakeRotation(-3.14); kuvert.transform = CGAffineTransformRot...

How return a value from view2 to view1 when using navigation bar

Hi All, I am New to the iPhone Development. How can i carry a string value from view2 to view1 when using navigation bar. I have no problem in carrying string values from view1 to view2 to view3 to....by using pushviewcontroller But when i come back to previous views using Back button of navigation bar, I cannot able to hold string v...

iPhone 3.1 SDK: UIViewController category is affecting ALL ViewControllers

Hi everyone, iPhone SDK question for you. I've created a UIViewController category to shift a view up when UITextFields are being edited and the keyboard appears, blocking the fields. I found the code online and no doubt you iPhone gurus are familiar with it. The interface looks like this: @interface UIViewController (Shiftable) ...

Navigate to prev and next pdf file?

I got a pdf viewer in a uiwebview, from Daniel Barry http://github.com/danberry/PDF-Viewer and it works really well, it displays a pdf doc that you can scroll up and down. Now I would like to display just one page at the time and also have a menu underneat the pdf page with a prev and next button. Can anybody help a newbe to figure out ...

AND NSPedicate on Core Data relationships

I'm having trouble compounding NSPredicate with AND, although using OR works fine. Imagine 2 entities, Doctor and Patient. Doctors can have many patients and patients many doctors. I want to find doctors that, say, have both person1 and person2 as patients. I expected this to work but it returns none. NSPredicate *predicate = [NSPre...

How to temporarily change all default user settings without destroying the original?

My app is based strongly on a lot of NSUserDefault keys and values. I want to implement a temporary defaults profile which the user can activate to get a special task done easily. For this, some of the user defaults must be changed temporarily so the app adjusts it's interface appropriately. I started to just manually change those NSU...

While providing Username and Password LinkedIn comes out my native application?

I am new in this field.i am integrating LinkedIn in my native application.While i am providing user name and password it comes out my native application and opens the LinkedIn site so please help me. if any one has sample code for posting a blog on wall then please give me i am really needed it. ...

How do you provide labels for the axis of a Core Plot chart?

I am using the Core Plot framework, and attempting to work through the example applications. Are there any tutorials for using this framework? Specifically, how do you provide labels for X and Y axes in a chart? ...

Building ARM assembler vorbis decoder lib 'Tremolo' for iPhone

I'm trying to compile Tremolo for iPhone. I've pulled in the files bitwise.c bitwiseARM.s codebook.c dpen.s dsp.c floor0.c floor1.c floor1ARM.s floor_lookup.c framing.c info.c mapping0.c mdct.c mdctARM.s misc.c res012.c into a new target, added the following custom settings: GCC_PREPROCESSOR_DEFINITIONS = _ARM_ASSEM_ GCC_C_LANGUAGE_STAN...