iphone

String Conversion in Objective-C

In my program, I'm allowing the user to input some words into a textfield. Then my program will use these words to form a html string. The string will then be used in NSURL so I can connect to the website. This method works great for english words. But when I input some chinese (or korean) in there, I does not work. Thus I believe that...

Stop one cell in a UITableView from being editable

Hi there. I have a UITableView with cells. The table view shows a list of downloaded video files. If a video file is downloaded I want them to be able to delete it by sliding - ie: delete a row in a table deletes the file. The table view then resets to show "select to download video". However, non-downloaded files obviously cannot be d...

memory leak on uiwebview alloc

hi everyone. in my app i have a uiwebview which i used to display image file. now the problem is i am getting a leak in this view. here i have written the following code. UIWebView *the_pWebView = [[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; // the leak is on this line. the_pWebView.backgroundColor = [UIC...

iPhone/iPad Augmented Reality lib3DAR CMMotionManager symbol not found error

Hi, I'm currently trying to get the 3DAR library (http://spotmetrix.com/documentation) to work with the latest iphone/ipad ios but when I've followed the exact instructions and use the latest github version of the panoramic example (http://github.com/pmark/Panoramic) I keep getting 2 errors: First error is about a missing "SM3DAR_key...

checksum code in obj-c

I am looking for checksum algorithm written in obj-c so that I can validate a ticket(number) and generate 2Dbar code based on validation. Any ideas on how to achieve this? Thanks ...

How to know the length of a music file?

Hi I would like to know in advance the length of a music file. Is it possible? ...

how to get data from xml file

hi i am new to iphone. what i did is displaying grid of 10 images.For this i take a array and add all images to array.For this i am write the code as [_image addImage:[UIImage ImageNamed:@"black.jpg"]]; like this i add all images to array.Now what i need is i need to get all the images through Xml file and add to the images array. Ho...

Playing video using UIWebview

detailVideo.h @interface detailVideo : UIViewController { IBOutlet UIWebView *webview; NSString *urlAddress; } @property(nonatomic,retain)NSString *urlAddress; @end detailVideo.m - (void)viewDidLoad { NSString *reqUrl = urlAddress; //Create a URL object. NSURL *url = [NSURL URLWithString:reqUrl]; //URL Requst Object NSURL...

set first text on UISearchBar

i want to set first text on my UISearchBar -the text is "Search"-, and the text will disappear when user start typing. just like this: how it could be.??? thanx ...

Access UIView after adding it to superview/as a subview

Hi, I have a variable sized array of UIImageViews that I'd like to add to my main View. So I loop through the array, adding each UIImageView to the scene as follows: for (UIImageView *nextImageView in myImageArray] [self.view addSubview:nextImageView]; (I also configure their frames individually but have left that out here) Howev...

UITextField Delegate in UITableView

G'day guys, I'm building an application that allows users to rapidly input numbers into a table view. I've currently built the framework, but I'm having a bit of a hitch hooking up the view to have the keyboard load and make the text in the cell editable from a user action. I remember there being an iOS example in the dev code somewher...

Adding Files In Application Directory

As we can't access any file in outside app's bundle directory, app's Documents directory. How user can add files from his iphone into app's document directory ????? Thanks......... ...

Dropdown list view in iPhone

Hi All, Has any one has the implemented drop-down view in their application. The drop-down view should behave like a search suggestion drop-down or a normal drop-down web component view having a button with the text-view field. Or can any one guide me to such an article of the implementation is present on the web. I have tried goggling...

How do I still play sound the iphone(ipod touch) is locked but my program is running?

How do I still play sound the iphone(ipod touch) is locked but my program is running? ...

What percentage of iPhone users using each iOS version

Hello All, I am looking for up-to-date report of iOS versions deployment in percentage. Something like Chitikia Report but up-to-date. This info is extremely important for taking a decision of what iOS version to deploy my App... Any idea where to find that? Is Apple publish such reports for its registered developers? Many Thanks! ...

My object seems to get deleted, with me requesting that. EXEC_BAD_ACCESS

I create an array of custom objects called players. @interface Player : NSObject { NSString *name; NSNumber *spd; NSNumber *atk; NSNumber *def; } @property(nonatomic, retain) NSString *name; @property(nonatomic, retain) NSNumber *spd; @property(nonatomic, retain) NSNumber *atk; @property(nonatomic, retain) NSNumber *de...

touchmove events

I am using mousemove events to change the background color of the text $("span").mousemove(function(){ $(this).css("background-color","yellow"); }); but when I tried it with touchmove event for iPhone application, it was highlighting the first span tag, but not sequentially. ...

problem in adding second UIbutton in cameraOverlayView

problem in adding second UIbutton in cameraOverlayView ,here i am able to add the first button but not able to add second button with following code - (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType { [self reset]; // Create the Image Picker if ([UIImagePickerController isSourceTypeAvailable:source...

Load tabbars dynamically from a plist file

Hi, I have a plist file with a dictionary of several names of tabbars (e.g. tabbar1, tabbar2, tabbar3). I want to loop over this dictionary and load the tabbars when the app starts. My problem is that the .h file does not contain the according objects (e.g. TabbarViewController1). So, is it possible to load tabbars/viewcontrollers at ...

list of Font File (.ttf format) for supported iphone font name ????

Hi is anyone have idea . from where i can get the list of font file (.ttf ) for supported iphone font name. some font file i have found in macOs Lib.but i need all font file . so any idea????? ...