Expanding autocomplete menu in ios.

This commit is contained in:
Samuel Clay 2014-12-01 17:52:48 -08:00
parent b8e6ca04bb
commit e7cae118fa
5 changed files with 16 additions and 11 deletions

View file

@ -479,7 +479,7 @@ numberOfRowsInComponent:(NSInteger)component {
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSDictionary *result = [autocompleteResults objectAtIndex:indexPath.row];
[self.siteAddressInput setText:[result objectForKey:@"value"]];
[self addSite];
// [self addSite]; // Don't auto-add. Let user select folder.
[UIView animateWithDuration:.35 animations:^{
siteScrollView.alpha = 0;
}];

View file

@ -1837,7 +1837,7 @@ shouldStartLoadWithRequest:(NSURLRequest *)request
}
- (void)changeWebViewWidth {
// NSLog(@"changeWebViewWidth: %@", NSStringFromCGRect(self.view.frame));
NSLog(@"changeWebViewWidth: %@", NSStringFromCGRect(self.view.frame));
int contentWidth = self.appDelegate.storyPageControl.view.frame.size.width;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
NSString *contentWidthClass;

View file

@ -539,7 +539,7 @@
NSInteger wasIndex = pageController.pageIndex;
pageController.pageIndex = newIndex;
NSLog(@"Applied Index: Was %d, now %d (%d/%d/%d) [%d stories - %d]", wasIndex, newIndex, previousPage.pageIndex, currentPage.pageIndex, nextPage.pageIndex, [appDelegate.storiesCollection.activeFeedStoryLocations count], outOfBounds);
NSLog(@"Applied Index: Was %ld, now %ld (%ld/%ld/%ld) [%lu stories - %d]", (long)wasIndex, (long)newIndex, (long)previousPage.pageIndex, (long)currentPage.pageIndex, (long)nextPage.pageIndex, (unsigned long)[appDelegate.storiesCollection.activeFeedStoryLocations count], outOfBounds);
if (newIndex > 0 && newIndex >= [appDelegate.storiesCollection.activeFeedStoryLocations count]) {
pageController.pageIndex = -2;

View file

@ -5,7 +5,7 @@
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#define DEBUG 1
//#define DEBUG 1
//#define PROD_DEBUG 1
#ifdef DEBUG

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4510" systemVersion="12F37" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1792" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3742"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="AddSiteViewController">
@ -121,11 +121,11 @@
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</activityIndicatorView>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" alpha="0.0" contentMode="scaleToFill" id="63">
<rect key="frame" x="0.0" y="135" width="320" height="130"/>
<rect key="frame" x="0.0" y="135" width="320" height="345"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="49">
<rect key="frame" x="0.0" y="0.0" width="320" height="130"/>
<rect key="frame" x="0.0" y="0.0" width="320" height="345"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" cocoaTouchSystemColor="lightTextColor"/>
<inset key="separatorInset" minX="6" minY="0.0" maxX="0.0" maxY="0.0"/>
@ -154,10 +154,15 @@
</button>
</subviews>
<color key="backgroundColor" white="0.94625342150000002" alpha="1" colorSpace="calibratedWhite"/>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
</view>
</objects>
<resources>
<image name="g_icn_folder_add.png" width="16" height="16"/>
</resources>
</document>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>