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

How to make Images in UITableViewCell scroll smoothly?

I’m loading images into my UITableViewCell and it is becoming choppy. I only have around 5-10 cells max. Are there any easy ways to fix this? – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @”appointmentCell”; AppointmentTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; NSDictionary *appointmentDictionaryTemp = [self.appointmentArray objectAtIndex:indexPath.row]; cell.patientNameLabel.text = [appointmentDictionaryTemp objectForKey:@”patient”]; cell.appointmentTimeLabel.text = [appointmentDictionaryTemp […]

NSPopButton with list of font families

How can I create a NSPopupButton with a list of font families where each item is in its own font as shown in the attached screenshot. I want to use bindings to achieve this. I am able to populate the NSPopupButton by binding NSPopupButton content to value returned by [[NSFontManager sharedFontManager] availableFontFamilies] but I can’t […]

How can I get information about who called a method?

I’d like to get some information on who called a particular method. Namely, if possible, getting the line number and file name of the method that made the call. Akin to FILE and LINE, except one level down in the stack. This is possible in high-level languages, but any way to do it in Objective-C? […]

My iOS app is not showing App Icon in Simulator

I have added all required icons in asset catalogs as well as in my application, but it is not showing icon on simulator

How to set the PlaceMark position in MKMapView?

MKMapView show the pin on the center of the mapView, I want to position the pin location above the center. How do I do that? Here is my code – (void) location { MKCoordinateRegion region; MKCoordinateSpan span; span.latitudeDelta = 0.1162; span.longitudeDelta = 0.1160; CLLocationCoordinate2D location; location.latitude = 65.494806; location.longitude = -23.577569; region.span=span;; PlaceMark *add_Annotation […]

Iphone default KeyBoard “Go” button action not working with PhoneGap

I am using PhoneGap 1.8.1 to build an application in Iphone. I have an login window (screen shot attached below). There are two html Text-boxes (one for entering user name and another one for entering password) and a Log-in button to login. I can able to successfully Login through my Login button using below code. […]

Is object that calls performSelector:withObject:afterDelay get retained by the NSRunLoop?

I have a certain object that perform a “Refresh” every X seconds. (“The Updater”) The way I’m doing this repetitive update is by calling performSelector:withObject:afterDelay and in my selector I’m re-scheduling as necessary. Of course I have a method to stop these invokations by calling cancelPreviousPerformRequests. The problem is that this “Updater” is never being […]

Collage of images with different shapes

I am completely new into photo editing app development. How can i develop grid styles like this, so that i can add multiple images picked from cameraroll to create a collage? I went through below links, but not getting the way to achieve this. Any suggestion or links will be helpful. LINK1 LINK2

Facebook Request Never Gets Executed

I am trying to get a user’s Facebook Friends who also use the same app. “Time to get other friends that use this app” always prints out But neither the result, nor the error are printed I checked the graph path with Facebook’s Graph API explorer, and it worked, but it does not work with […]

FQL query to fetch a user's Facebook friend's gender PLUS meeting_sex

Not quite as racy as it sounds – I’m using the below code to get a user’s male or female friends only and it works fine. However, I also want to check their ‘meeting_sex’ which is a list of the genders a user’s friend is interested in meeting, i.e. male, female or both. (Described here) […]