cocoa-touch

Problem in writing metadata to image

Hi i am using AvFoundation to take still image and adding gps info to metadata and saving to photos album using Asset library but gps ingo is not saving at all. here is my code... [self.stillImageTaker captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler:^(CMSampleBufferRef imageDataSampl...

How can I enable each word tapping in UITextView for IPhone

Hi, I have a requirement wherein I have to provide tap/click/touch event for each word in UITextView. Any help would be really appriciated. ...

Using self on iVars in dealloc?

Usually I write my dealloc to look like this: - (void)dealloc { [coffeeList release]; [super dealloc]; } But today I typed (see below) and was a little puzzled why I got an error running the code through the CLANG static analyser. As I say I don't usually add self to iVars in dealloc, but was just a little curious when I spott...

Detecting of scroll bar is visible in the UIWebView

I need to detect if the scroll bar is visible in the UIWebView, how do I do this? My first attempt was: int scrollHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollHeight"] intValue]; if(scrollHeight > [webView frame].size.height) NSLog(@"Scrollbar is visible"); But the scrollHeight is alwa...

What user interface element would I use to take and crop a photo on the iPhone?

I'd like to be able to take a photo from the iPhone's camera, select a polygon within that photo, crop the photo to match, and then fit the resulting image to the screen. What user interface element would you suggest for me to start doing this? I'm a Java programmer and just getting started with the iPhone, so I'm not sure what to use....

How to change the background of a toolbar

How do I change the toolbar's background? ...

How to add a text to a picker's top area?

I have been asked to create a small rectangle on the top of a picker component (but inside the picker area) that will hold one word. I'm not sure if this adheres to Apple HIG but anyway I would like how to implement it as an exercise. ...

Which technique to use for creating private methods in Obj-C ?

When I want to create private methods in Objective-C, what should I use? 1) The well known categories technique. 2) @private directive. (I'm doing iOS development). ...

Eliminating the border of a grouped table cell

I have a grouped table view; the table's background is a custom image. In one type of cell, I have just an image, and it doesn't fill up the entire cell width, and it's centered in the cell. I've set that's cell's background to UIColor -clearColor, so that the table's background view shows through, but the cell is still drawing the lig...

Is it possible to define ivars in Objective-C extension?

I wonder if it is possible to write something like this in the .m file: @interface MyController () {//ERROR here Foo *privateFoo; } @end I did it but I get : Expected identifier or '{' before '{' token, I think I heard/watch a video (WWDC2010) saying this is possible or will be possible and currently only some architectures suppo...

How to upload a file from the front end (view) in an iphone app?

Hi, In my iphone app, It is a requirement that I enable the user to upload the database file (.sql) from the front end of the app or through iTunes and the app should display the data based on the file he/she uploaded. How should I go ahead with implementation? Please give your suggestions. Please Help. Thanks!! ...

CGContextSetLineWidth of varying width around path

In one of my apps, I have a custom drawn semitransparent UIView that I use as a cover on top of another UIView for a special effect. Lower View: Lower View with Custom View on Top: It works, its great on the iPhone where the side margins are only 10 pixels, but now I need to expand the left and right margins to match the row below i...

Reading samples via AVAssetReader

How do you read samples via AVAssetReader? I've found examples of duplicating or mixing using AVAssetReader, but those loops are always controlled by the AVAssetWriter loop. Is it possible just to create an AVAssetReader and read through it, getting each sample? Thanks. ...

Moving and existing UI on a UIScrollView

I have some xibs with all sorts of text controls (UITextFields, UITextViews). Since the keyboard obscures some of these text controls when text input starts, I followed Apple's guideline for managing content located under the keyboard. In short, the solution involves moving all interface elements on a UIScrollView. Doing it from Interfa...

How can I support iOS 3.0 and not iOS 3.2

I have set my base SDK to 3.0 but don't want my app available for iPad (3.2). How can I accomplish this? ...

How to slide(push) controls down/up in a View?

Hello folks! I have a button which when pressed, should push the controls below it down and show textFields on the space freed. Basically, just changing the position of these controls in an animated way. Any ideas/tips on how to do that? I tried the code in: How to Make a UITextField Move Up When Keyboard Is Present But couldn't get i...

How to display list of values in Iphone programming except using UIPickerView?

Hi, In my app I have four fields and each of them is list of values. Now if i use a UIPickerView with 4 components then the whole View becomes too congested and ugly for the user's liking. Is there any better and cleaner way to display these list of values? Please Help & Suggest. Thanks!! ...

How to create such an iOS interface?

Would you please have a look at Tipulator app: http://www.sophiestication.com/tipulator/ I'm interested in the upper graphic part of the application, how to create such an interface? It doesn't look to use standard UIKit components, it looks like pure graphics yet the values can be updated as a UIKit component. ...

UIWebview works slow

Hello All, UIWebview load the content very slow. WebView=[[UIWebView alloc]initWithFrame:self.view.bounds]; WebView.delegate=self; [WebView addSubview:spinner]; [self.view addSubview:WebView]; NSString *decodeString=[@"www.google.com" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [WebView loadRequest:[NSURLRequest r...

selectedBackgroundView on UITableViewCell gets applied to all views in cell

I have a table cell being displayed that shows a users image, name and some text. The user's image is 50x50, but I want a border around it so I set the view to center the image and set the frame to 52x52 and then set the background color of that view to my border color. That shows a 1 pixel border around the image. I also want to show...