iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Mach-o Linker Error

I can’t build my project because I keep getting this error. As I understood it deals with the constant tagShift I’m using in my code. I would appreciate if anyone could help me to solve this issue

iOS Caller ID Retrieve

I’m trying to get the caller number (for jailbroken devices) with this code: extern CFTypeRef CTCallCopyName(void*, CTCall* call); NSLog(@”%@”, CTCallCopyName(NULL, (CTCall*)call)); I receive the error: “CTCallCopyName(void*, CTCall*)”, referenced from: ld: symbol(s) not found for architecture armv6 I have Core Telephony linked with my project. Maybe my prototype is wrong… i don’t know. Any ideas? Xcode […]

Preprocessor Timestamp

Is it possible to generate an embedded Unix timestamp via a preprocessor macro? For instance: #define VERSION_EXPIRE __TIMESTAMP__ The reason for this is, that i have beta versions and i want to generate an expire timestamp on compile time (in a special build configuration).

Increase the maximum play rate of AVPlayer

Currently I am working on an App, where I want to play a video really fast, up to 20 times of the normal play rate. I just realized now, that AVPlayer of AVFoundation just supports a playback rate of 2.0 . With a higher rate the video doesn’t play fluently anymore. Do you have any […]

iOS CFStringTransform and Đ

I’m working on an iOS app in which I have to list and sort people names. I’ve some problem with special character. I need some clarification on Martin R answer on https://stackoverflow.com/a/15154823/2148377 You could use the CoreFoundation CFStringTransform function which does almost all transformations from your list. Only “đ” and “Đ” have to be handled […]

Detect language in use by iOS application

How can I detect the current application language ? I am not talking about NSLocale user preferences. In my app there are currently two supported languages. A default ‘en’ and a specific ‘it’. I just wanted to know which one is actually in use. If it is relevant, as a further explanation, I am providing […]

How I know the the posting data goes correctly

-(IBAction)clicked:(id)sender{ NSString *CIDString = cID.text; NSURL *url = [NSURL URLWithString:@”http://localhost:8080/test/?”]; NSString *postData = [NSString stringWithFormat:@”companyID=%@”,CIDString]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[url standardizedURL] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60]; [request setHTTPMethod:@”POST”]; [request setValue:@”application/x-www-form-urlencoded; charset=utf-8″ forHTTPHeaderField:@”Content-Type”]; [request setHTTPBody:[postData dataUsingEncoding:NSUTF8StringEncoding]]; [self startConnection:(NSMutableURLRequest *)request]; if([self.result isEqualToString:@”New Alert”]) { cID.text = @”Scuess”; } } where startConnection method is as follows – (void)startConnection:(NSMutableURLRequest *)request { [self.connection […]

How can I upload a photo to a server with the iPhone?

I’m writing an iPhone app that takes a photo and then uploads it to a server. How do I upload a photo to a server with Cocoa? I suppose I use NSUrl somewhere. Thanks!

iOS: SDWebImageManager not caching image

I’m creating a slideshow using UIImageView, and the image links are in an array , so while I was at it, I learned that SDWebImageManager lets hit the URLs once only and then it caches the images for later use. But what I’m monitoring in my app is that the 1st image is cached, I […]

Creating a hidden UISegmentedControl in a UITableView

Like the iBooks app, when you pull down the tableview, a search bar and segmented control appear, to allow you to search and switch between two types of views. It sticks in that position when you pull down far enough, and alternatively, gets hidden when you pull the tableview up enough. I am trying to […]