iphone

beginner with UIPickerVIew in iPhone

Hello, Can UIPickerView be re sized? Will you please provide me some example code of creating UIPickerView programmatically in iPhone.or let me know the basics to start with it. Thank You, ...

Localizing strings in iOS: default (fallback) language?

Is there a way to set a default language to be used when the device UI language is not supported by an app? Example: My app is localized into English and German: en.lproj: "POWER_TO_THE_PEOPLE_BTN" = "Power" "POWER_PLUG_BTN" = "Power" de.lproj: "POWER_TO_THE_PEOPLE_BTN" = "Macht" "POWER_PLUG_BTN" = "Spannung" Now, if I run the app o...

How can i use "MPMusicPlayerController" to playlist from my website in my Iphone app

hello, i'm a beginning so i hope to explain me in easy way. how can i use MPMusicPlayerController to play sound list in my iPhone app. if i have many mp3 files in my website how can play these files automatically ? i mean when open my app auto start 1.mp3 and when it finish 2.mp3 start automatically ? Thanks alot :) ...

Want to call https request using jquery

Hi guys Suppose Server url is : https://example.com/employee and it's return json data I want to call this url using Jquery in iphone I wrote this code : $.ajax { type: "POST", contentType: "application/json; charset=utf-8", url: "https://example.com/employee", data: "{}", dataType: "json" success: function(res) { ...

Which is the best language to replace objective-c?

After reading Is a virtual machine for Cocoa programming inevitable?, I'd like know what is the language in your mind if the replacement really happens, and why? Fixable complaints in the language and APIs include the lack of tuples, slices, maps or associations at a syntax level; the lack of template programming; the ...

How to reload tabledata when i move between tableviewcontrollers

Hi Guys, My Requirement is such that....i can abl to get datas dynamically in viewwillAppear method...but i want to map this dynamic data in to tableview.whts happening is that in first time only cellForRowAtIndexPath is called....but for subsequent times it is not called....please tell me how to resolve above issue ...

How to handle time control in iPhone programming

Hello, Any idea on how to customize the UIDatePicker with single column with list of events in it,and user should be able to select one among it ? Let me know some details about it. or example related to it. Thank You ...

Tutorial or sample code for parsing xml file using libxml2 in IPhone Application

I just want a tutorial demonstrating the parsing of XML File using libXml2 in Iphone . I found tutorials on TouchXMLand other but not the same for Libxml2 Please help if u can. ...

UIImageView with strange behavious with DownArrow.png

I have an image under Resources group named "DownArrow.png" Open your viewController.xib Drag & drop an imageview select imageview & press command+1 ( for attribute inspector ) now set image name DownArrow.png save your viewController.xib close it now reopen it. you will find imageview with different image ( which is really a downArrow...

iPhone UITableViewController showing/hiding rows during execution

Hi Guys, I'm trying to realize a UITableViewController with 7 sections. Each sections has a number of rows that could change by user events. For istance, in the first section I have a single row with a UISwitch: if the user activates the switch, 2 more rows appear in that section. The same for section 2. Ok for now.... In sections 3,4,5 ...

How to shift item location on screen after iPhone rotation.

I have a UILabel that I need to shift up by about 50 pixels on application start (because it starts out in portrait, and I designed it in landscape) and then once again whenever it is put back in portrait. Right now I'm using a CGRect based on its current frame. The problem is when I try to rotate the phone the frame uses the portrait va...

how to show unicode character in iphone application

hi all i am developing RSS application in which title are in Japanese language. i have grasped and display title in table cell but it is just showing me ? marks. ie ????????????? how to tackle this... the code by which i am recieving title and displaying it in table cell is below. int blogEntryIndex1 = [indexPath indexAtPosition: [i...

how to generate runtime database in iphone?

I want to generate run time database (sqlite)in iphone application.How it possible? Please help me for this query. ...

Using UISegmentedControl as button

In my code I am using a UISegmentedControl as a "button" with only ONE segment and the momentary property set to YES. In versions of the SDK prior to iOS 4, this was not a problem, but it appears that now iOS 4 requires that there be at least 2 segments. The following code throws an exception: NSArray *titles = [NSArray arrayWithObject:...

Duplicate symbole Admobview problem

Get the following error while using the Admob sdk in project : ld: duplicate symbol _OBJC_METACLASS_$_AdMobView in /Users/gts/Own/Admob/test/libAdMobSimulator.a(AdMobView.o) and /Users/gts/Own/Admob/test/libAdMobDevice.a(AdMobView.o) Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1...

Only one row in UIdatePicker

Hello, I would liketo have the use of a UIDatePicker that is just one row displayed instead of three. Three rows take up way too much real-estate! HELP!!! I am able to rotate and resize the control without any great stress, but have yet to figure out how to only display the one row. Thank you, ...

warning: '-managedObjectContext' not found in protocol(s)

I'm using the following code to reach the MOC in my second view controller if (managedObjectContext == nil) { managedObjectContext = [[[UIApplication sharedApplication] delegate] managedObjectContext]; } I got the above error and I don't know how to get rid of it! ...

How can i maintain the selected state in button in iPhone

Hi friends, I have created scroll view and sets the buttons are in the scroll view. The Buttons are scrolling horizontally and it works fine. If i clicked the button, i set background image as "Selected State" in button. My problem is how can i changed the selected state in different button, when clicking it and how can i deselected the...

_CGAffineTransformScale error on xcode

Hello guys, Can anyone help me to solved this xcode error? error : "_CGAffineTransformScale", referenced from: Is Xcode missing any library for CGAffineTransformScale ? Thanks in advance and help appreciated. ...

While trying to play movies from servers some URL's doesn't work. Why?

I am trying to run a streaming video in MPMoviePlayerController. When I was trying some urls like http://code.agilephil.com/fox.m4v it was working. But when I try some other urls like one in our remote server, it doesnt work and in Console it says Playback stopped. Could anyone help me please? ...