Tag: iphone

What is a “delegate” in Objective C's iPhone development?

This question already has an answer here: How do I create delegates in Objective-C? 18 answers

Xml parsing in iOS tutorial

Hi i’m creating an app which have to print a value in label from an xml file in server.I tried reading some of documentation under google search..but i can’t find it…Does any one know simple tutorial or any sample code that is used to integrate xml parsing in my app.

UIPickerView that looks like UIDatePicker but with seconds

I am making a timer app and needed to display hour, min and seconds to the user. I tried using UIDatePicker but it shows only hours and mins as selections. Not seconds. After doing a bit of research online I found that there is no way to get seconds in UIDatePicker and I had to […]

NSDate is not returning my local Time zone /default time zone of device

My local and default time zone is GMT +5 but when I get date and time by NSDate it return me GMT date and time. For example the code and output from my code while testing on device is as, [device time zone Islamabad GMT +5] NSTimeZone *lo = [NSTimeZone localTimeZone]; NSLog(@” – current local […]

UITableViewCell with dynamic height iOS

I have implemented TableView with CustomCell in my app, I want dynamic height of my UITableViewCell according to text length in UITableViewCell, here is the snapshot of Customcell : and here is the snapshot of my UITableView : code snippet for heightForRowAtIndexPath #define FONT_SIZE 14.0f #define CELL_CONTENT_WIDTH 320.0f #define CELL_CONTENT_MARGIN 10.0f – (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath […]

OpenCV Adaptive Threshold OCR

I am using OpenCV to prepare images for OCR from an iPhone camera, and I have been having trouble getting the results I need for an accurate OCR scan. Here is the code I am using now. cv::cvtColor(cvImage, cvImage, CV_BGR2GRAY); cv::medianBlur(cvImage, cvImage, 0); cv::adaptiveThreshold(cvImage, cvImage, 255, CV_ADAPTIVE_THRESH_MEAN_C, CV_THRESH_BINARY, 5, 4); This method takes a bit […]

how to use sendAsynchronousRequest:queue:completionHandler:

Two part question Part one: I am trying to create an ASynchronous request to my database. I am currently doing it Synchronously however I want to learn both ways to better my understanding of whats going on. Currently I have set up my Synchronous call like this. – (IBAction)setRequestString:(NSString *)string { //Set database address NSMutableString […]

Volunteermatch API Objective C

I am using AFNetworking to perform a web request on the VolunteerMatch API. When I perform the request I receive a 200 code, however I do not receive a response. Here is how a typical VolunteerMatch request looks like: GET /api/call?action=helloWorld&query=… HTTP/1.1 Host: www.volunteermatch.org Accept-Charset: UTF-8 Content-Type: application/json Authorization: WSSE profile=”UsernameToken” X-WSSE: UsernameToken Username=”acme”, PasswordDigest=”quR/EWLAV4xLf9Zqyw4pDmfV9OY=”, […]

Remove or uninstall library previously added : cocoapods

I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?

UIPageViewController, how do I correctly jump to a specific page without messing up the order specified by the data source?

I’ve found a few questions about how to make a UIPageViewController jump to a specific page, but I’ve noticed an added problem with jumping that none of the answers seem to acknowledge. Without going into the details of my iOS app (which is similar to a paged calendar), here is what I’m experiencing. I declare […]