Best practice for setting up an automated build server for iphone apps?

Hudson (or its fork Jenkins) is really not hard to set up; it’s what we use internally. We don’t just run iphone builds from it — in fact, there’s only only one lone mac mini set up for iphone builds, and it’s a relatively recent addition. We’ve had a half-dozen other slaves on it for … Read more

Detect change in orientation using javascript

NOTE: orientationChange is deprecated Instead use screen.orientation using the screenOrientation interface which is triggered by the screenorientation.onchange event window.addEventListener(“DOMContentLoaded”, () => { const output = document.getElementById(“o9n”); const displayOrientation = () => { const screenOrientation = screen.orientation.type; output.innerHTML = `The orientation of the screen is: ${screenOrientation}`; if (screenOrientation === “landscape-primary”) { console.log(“That looks good.”); } else … Read more

UIModalPresentationFormSheet resizing view

MyModalViewController *targetController = [[[MyModalViewController alloc] init] autorelease]; targetController.modalPresentationStyle = UIModalPresentationFormSheet; targetController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:targetController animated:YES]; // it is important to do this after presentModalViewController:animated: targetController.view.superview.bounds = CGRectMake(0, 0, 200, 200);

UITableView infinite scrolling

If you need to know when you hit the bottom of the UITableView, become it’s delegate (because it is a subclass of UIScrollView), and use the -scrollViewDidScroll: delegate method to compare the table’s content height and it’s actual scroll position. EDIT (something like this): – (void)scrollViewDidScroll:(UIScrollView *)scrollView_ { CGFloat actualPosition = scrollView_.contentOffset.y; CGFloat contentHeight = … Read more

What is correct media query for IPad Pro?

/* ———– iPad Pro ———– */ /* Portrait and Landscape */ @media only screen and (min-width: 1024px) and (max-height: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) { } /* Portrait */ @media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) { } /* Landscape */ @media only screen and (min-width: 1024px) and … Read more

Alternatives For iOS Development Under Windows [duplicate]

You might find following solutions handy. I have tried to comment those I am more familiar with: PhoneGap Sencha Touch – Nice JS framework. Check out their demos. Rhomobile Appcelerator Titanium jQuery Mobile – Version of jQuery optimized for mobile devices. jQTouch – jQuery plugin for mobile development CrossMobs – Sdk for iOS and android … Read more