forked from mirrors/linphone-iphone
side menu
This commit is contained in:
parent
cd38fb01a4
commit
f39d50e6f0
10 changed files with 580 additions and 68 deletions
|
|
@ -12,6 +12,10 @@
|
|||
</object>
|
||||
<array key="IBDocument.IntegratedClassDependencies">
|
||||
<string>IBProxyObject</string>
|
||||
<string>IBUIImageView</string>
|
||||
<string>IBUILabel</string>
|
||||
<string>IBUITableView</string>
|
||||
<string>IBUITableViewController</string>
|
||||
<string>IBUIView</string>
|
||||
</array>
|
||||
<array key="IBDocument.PluginDependencies">
|
||||
|
|
@ -31,24 +35,9 @@
|
|||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="191373211">
|
||||
<reference key="NSNextResponder"/>
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="256276698">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">290</int>
|
||||
<string key="NSFrameSize">{360, 40}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView" ref="481442126"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="572758541">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MCAwAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">2</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="481442126">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">314</int>
|
||||
|
|
@ -56,27 +45,234 @@
|
|||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView" ref="548578981"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="572758541">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MCAwAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">1</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="256276698">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">290</int>
|
||||
<string key="NSFrameSize">{360, 40}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView" ref="481442126"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">2</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="548578981">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">266</int>
|
||||
<array class="NSMutableArray" key="NSSubviews"/>
|
||||
<string key="NSFrame">{{0, 577}, {360, 63}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">3</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="1027426051">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">-2147483361</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="662020837">
|
||||
<reference key="NSNextResponder" ref="1027426051"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="1021847833">
|
||||
<reference key="NSNextResponder" ref="662020837"/>
|
||||
<int key="NSvFlags">311</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIImageView" id="866032321">
|
||||
<reference key="NSNextResponder" ref="1021847833"/>
|
||||
<int key="NSvFlags">319</int>
|
||||
<string key="NSFrame">{{0, 15}, {72, 61}}</string>
|
||||
<reference key="NSSuperview" ref="1021847833"/>
|
||||
<reference key="NSNextKeyView" ref="320287985"/>
|
||||
<string key="NSHuggingPriority">{251, 251}</string>
|
||||
<int key="IBUIContentMode">1</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSCustomResource" key="IBUIImage">
|
||||
<string key="NSClassName">NSImage</string>
|
||||
<string key="NSResourceName">avatar.png</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUILabel" id="320287985">
|
||||
<reference key="NSNextResponder" ref="1021847833"/>
|
||||
<int key="NSvFlags">319</int>
|
||||
<string key="NSFrame">{{81, 15}, {259, 32}}</string>
|
||||
<reference key="NSSuperview" ref="1021847833"/>
|
||||
<reference key="NSNextKeyView" ref="760559139"/>
|
||||
<string key="NSHuggingPriority">{251, 251}</string>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<string key="IBUIText">John Doe</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MCAwIDAAA</bytes>
|
||||
</object>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">0</int>
|
||||
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
||||
<int key="type">1</int>
|
||||
<int key="weightCategory">0</int>
|
||||
<double key="pointSize">37</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont">
|
||||
<string key="NSName">HelveticaNeue</string>
|
||||
<double key="NSSize">37</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
|
||||
<bool key="useAutomaticPreferredMaxLayoutWidth">YES</bool>
|
||||
</object>
|
||||
<object class="IBUILabel" id="760559139">
|
||||
<reference key="NSNextResponder" ref="1021847833"/>
|
||||
<int key="NSvFlags">319</int>
|
||||
<string key="NSFrame">{{81, 54}, {245, 22}}</string>
|
||||
<reference key="NSSuperview" ref="1021847833"/>
|
||||
<reference key="NSNextKeyView" ref="900140778"/>
|
||||
<string key="NSHuggingPriority">{251, 251}</string>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<string key="IBUIText">john.doe@sip.linphone.org</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC45ODc2NjQ2Mzk5IDAuMjc1MTI0ODc3NyAwLjAyOTczOTc4OTY2AA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="823443822">
|
||||
<int key="NSID">7</int>
|
||||
<object class="NSMutableData" key="NSICC">
|
||||
<bytes key="NS.bytes">AAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAA
|
||||
AAAAAAAAAAAAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAARY3BydAAAAVAAAAA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yY/Sn9uv5L/tz/bf//A</bytes>
|
||||
</object>
|
||||
</object>
|
||||
<characters key="NSComponents">1 0.368627451 0 1</characters>
|
||||
</object>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">0</int>
|
||||
<float key="IBUIMinimumFontSize">8</float>
|
||||
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
||||
<int key="type">1</int>
|
||||
<int key="weightCategory">0</int>
|
||||
<double key="pointSize">17</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont">
|
||||
<string key="NSName">HelveticaNeue</string>
|
||||
<double key="NSSize">17</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<bool key="useAutomaticPreferredMaxLayoutWidth">YES</bool>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrameSize">{320, 93}</string>
|
||||
<reference key="NSSuperview" ref="662020837"/>
|
||||
<reference key="NSNextKeyView" ref="866032321"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC44NTQxNTM4NzE1IDAuODU0MTI4MzAxMSAwLjg1NDE0Mjc4NTEAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="823443822"/>
|
||||
<characters key="NSComponents">0.8823529412 0.8823529412 0.8823529412 1</characters>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUITableView" id="900140778">
|
||||
<reference key="NSNextResponder" ref="662020837"/>
|
||||
<int key="NSvFlags">287</int>
|
||||
<string key="NSFrame">{{0, 93}, {320, 507}}</string>
|
||||
<reference key="NSSuperview" ref="662020837"/>
|
||||
<reference key="NSNextKeyView" ref="256276698"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="542030919">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClipsSubviews">YES</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIAlwaysBounceVertical">YES</bool>
|
||||
<int key="IBUISeparatorStyle">1</int>
|
||||
<int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
|
||||
<bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
|
||||
<float key="IBUIRowHeight">44</float>
|
||||
<float key="IBUISectionHeaderHeight">22</float>
|
||||
<float key="IBUISectionFooterHeight">22</float>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrameSize">{320, 600}</string>
|
||||
<reference key="NSSuperview" ref="1027426051"/>
|
||||
<reference key="NSNextKeyView" ref="1021847833"/>
|
||||
<reference key="IBUIBackgroundColor" ref="542030919"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{-360, 40}, {360, 600}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView" ref="662020837"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrameSize">{360, 640}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSNextKeyView" ref="256276698"/>
|
||||
<reference key="NSNextKeyView" ref="1027426051"/>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<object class="IBUISimulatedSizeMetrics" key="IBUISimulatedDestinationMetrics" id="445885811">
|
||||
<string key="IBUISimulatedSizeMetricsClass">IBUISimulatedFreeformSizeMetricsSentinel</string>
|
||||
|
|
@ -84,22 +280,37 @@
|
|||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUITableViewController" id="845480959">
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
|
||||
<int key="IBUIInterfaceOrientation">1</int>
|
||||
<int key="interfaceOrientation">1</int>
|
||||
</object>
|
||||
<object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
|
||||
<string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
|
||||
<string key="IBUITargetRuntime">IBCocoaTouchFramework</string>
|
||||
<string key="IBUIDisplayName">iPhone 4-inch</string>
|
||||
<object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<array key="dict.sortedKeys">
|
||||
<integer value="1"/>
|
||||
<integer value="3"/>
|
||||
</array>
|
||||
<array key="dict.values">
|
||||
<string>{320, 568}</string>
|
||||
<string>{568, 320}</string>
|
||||
</array>
|
||||
</object>
|
||||
<int key="IBUIType">2</int>
|
||||
</object>
|
||||
<int key="IBUIEdgesForExtendedLayout">15</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIHorizontal">NO</bool>
|
||||
</object>
|
||||
<object class="IBUIView" id="915565391">
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="1051455928">
|
||||
<reference key="NSNextResponder" ref="915565391"/>
|
||||
<int key="NSvFlags">290</int>
|
||||
<string key="NSFrameSize">{640, 26}</string>
|
||||
<reference key="NSSuperview" ref="915565391"/>
|
||||
<reference key="NSNextKeyView" ref="575003184"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">2</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="575003184">
|
||||
<reference key="NSNextResponder" ref="915565391"/>
|
||||
<int key="NSvFlags">314</int>
|
||||
|
|
@ -112,6 +323,18 @@
|
|||
<int key="IBUITag">1</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="1051455928">
|
||||
<reference key="NSNextResponder" ref="915565391"/>
|
||||
<int key="NSvFlags">290</int>
|
||||
<string key="NSFrameSize">{640, 26}</string>
|
||||
<reference key="NSSuperview" ref="915565391"/>
|
||||
<reference key="NSNextKeyView" ref="575003184"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<reference key="IBUIBackgroundColor" ref="572758541"/>
|
||||
<bool key="IBUIAutoresizesSubviews">NO</bool>
|
||||
<int key="IBUITag">2</int>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="872119935">
|
||||
<reference key="NSNextResponder" ref="915565391"/>
|
||||
<int key="NSvFlags">266</int>
|
||||
|
|
@ -185,6 +408,46 @@
|
|||
</object>
|
||||
<int key="connectionID">25</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">sideMenuTableViewController</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="845480959"/>
|
||||
</object>
|
||||
<int key="connectionID">36</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">sideMenuView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="1027426051"/>
|
||||
</object>
|
||||
<int key="connectionID">37</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="845480959"/>
|
||||
<reference key="destination" ref="900140778"/>
|
||||
</object>
|
||||
<int key="connectionID">33</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">dataSource</string>
|
||||
<reference key="source" ref="900140778"/>
|
||||
<reference key="destination" ref="845480959"/>
|
||||
</object>
|
||||
<int key="connectionID">34</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">delegate</string>
|
||||
<reference key="source" ref="900140778"/>
|
||||
<reference key="destination" ref="845480959"/>
|
||||
</object>
|
||||
<int key="connectionID">35</int>
|
||||
</object>
|
||||
</array>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<array key="orderedObjects">
|
||||
|
|
@ -198,9 +461,10 @@
|
|||
<int key="objectID">1</int>
|
||||
<reference key="object" ref="191373211"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="481442126"/>
|
||||
<reference ref="256276698"/>
|
||||
<reference ref="481442126"/>
|
||||
<reference ref="548578981"/>
|
||||
<reference ref="1027426051"/>
|
||||
</array>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">Portrait View</string>
|
||||
|
|
@ -231,6 +495,7 @@
|
|||
<object class="IBObjectRecord">
|
||||
<int key="objectID">16</int>
|
||||
<reference key="object" ref="548578981"/>
|
||||
<array class="NSMutableArray" key="children"/>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
<string key="objectName">tabBar</string>
|
||||
</object>
|
||||
|
|
@ -238,8 +503,8 @@
|
|||
<int key="objectID">20</int>
|
||||
<reference key="object" ref="915565391"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="575003184"/>
|
||||
<reference ref="1051455928"/>
|
||||
<reference ref="575003184"/>
|
||||
<reference ref="872119935"/>
|
||||
</array>
|
||||
<reference key="parent" ref="0"/>
|
||||
|
|
@ -264,6 +529,64 @@
|
|||
<reference key="parent" ref="915565391"/>
|
||||
<string key="objectName">tabBar</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">27</int>
|
||||
<reference key="object" ref="845480959"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">26</int>
|
||||
<reference key="object" ref="1027426051"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="662020837"/>
|
||||
</array>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
<string key="objectName">menuView</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">38</int>
|
||||
<reference key="object" ref="662020837"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="1021847833"/>
|
||||
<reference ref="900140778"/>
|
||||
</array>
|
||||
<reference key="parent" ref="1027426051"/>
|
||||
<string key="objectName">sideMenuView</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">29</int>
|
||||
<reference key="object" ref="1021847833"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="760559139"/>
|
||||
<reference ref="320287985"/>
|
||||
<reference ref="866032321"/>
|
||||
</array>
|
||||
<reference key="parent" ref="662020837"/>
|
||||
<string key="objectName">headerView</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">30</int>
|
||||
<reference key="object" ref="760559139"/>
|
||||
<reference key="parent" ref="1021847833"/>
|
||||
<string key="objectName">addressLabel</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">31</int>
|
||||
<reference key="object" ref="320287985"/>
|
||||
<reference key="parent" ref="1021847833"/>
|
||||
<string key="objectName">nameLabel</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">32</int>
|
||||
<reference key="object" ref="866032321"/>
|
||||
<reference key="parent" ref="1021847833"/>
|
||||
<string key="objectName">avatarImage</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">28</int>
|
||||
<reference key="object" ref="900140778"/>
|
||||
<reference key="parent" ref="662020837"/>
|
||||
</object>
|
||||
</array>
|
||||
</object>
|
||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
||||
|
|
@ -272,6 +595,7 @@
|
|||
<string key="-2.CustomClassName">UIResponder</string>
|
||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="1.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="1.IBPersistedLastKnownCanvasPosition">{-78, 343}</string>
|
||||
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="14.CustomClassName">UITransparentView</string>
|
||||
<string key="14.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
|
|
@ -286,12 +610,41 @@
|
|||
<string key="22.CustomClassName">UITransparentView</string>
|
||||
<string key="22.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="23.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="26.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="26.IBPersistedLastKnownCanvasPosition">{-73, 499}</string>
|
||||
<string key="26.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="26.IBUserGuides" ref="0"/>
|
||||
<reference key="26.IBViewMetadataConstraints" ref="0"/>
|
||||
<string key="27.CustomClassName">SideMenuTableViewController</string>
|
||||
<string key="27.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="28.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="28.IBUserGuides" ref="0"/>
|
||||
<reference key="28.IBViewMetadataConstraints" ref="0"/>
|
||||
<reference key="29.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="29.IBUserGuides" ref="0"/>
|
||||
<reference key="29.IBViewMetadataConstraints" ref="0"/>
|
||||
<reference key="30.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="30.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="30.IBUserGuides" ref="0"/>
|
||||
<reference key="30.IBViewMetadataConstraints" ref="0"/>
|
||||
<reference key="31.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="31.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="31.IBUserGuides" ref="0"/>
|
||||
<reference key="31.IBViewMetadataConstraints" ref="0"/>
|
||||
<reference key="32.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="32.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<reference key="32.IBUserGuides" ref="0"/>
|
||||
<reference key="32.IBViewMetadataConstraints" ref="0"/>
|
||||
<reference key="38.IBNSViewMetadataGestureRecognizers" ref="0"/>
|
||||
<string key="38.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
||||
<nil key="activeLocalization"/>
|
||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">25</int>
|
||||
<int key="maxID">39</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes"/>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
|
|
@ -303,5 +656,9 @@
|
|||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
|
||||
<string key="NS.key.0">avatar.png</string>
|
||||
<string key="NS.object.0">{751, 751}</string>
|
||||
</object>
|
||||
</data>
|
||||
</archive>
|
||||
|
|
|
|||
|
|
@ -22,27 +22,6 @@
|
|||
<rect key="frame" x="0.0" y="0.0" width="360" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" id="lfO-I4-PXi" userLabel="outcallView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="360" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="yg7-rx-XVv" userLabel="menuButton">
|
||||
<rect key="frame" x="10" y="10" width="20" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" title="Button" image="menu.png">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="3Jg-EU-ajT" userLabel="voicemailButton">
|
||||
<rect key="frame" x="249" y="0.0" width="111" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
||||
<inset key="titleEdgeInsets" minX="6" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
<state key="normal" title="12" image="voicemail.png">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
</button>
|
||||
</subviews>
|
||||
</view>
|
||||
<view hidden="YES" contentMode="scaleToFill" id="0Vp-VF-wmX" userLabel="incallView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="360" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
|
|
@ -67,13 +46,37 @@
|
|||
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="doSecurityClick:" destination="-1" eventType="touchUpInside" id="30"/>
|
||||
<action selector="onSecurityClick:" destination="-1" eventType="touchUpInside" id="bdh-tU-zPP"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" id="lfO-I4-PXi" userLabel="outcallView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="360" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="yg7-rx-XVv" userLabel="sideMenuButton">
|
||||
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" title="Button" image="menu.png">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="onSideMenuClick:" destination="-1" eventType="touchUpInside" id="EeV-2U-i44"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="3Jg-EU-ajT" userLabel="voicemailButton">
|
||||
<rect key="frame" x="249" y="0.0" width="111" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
||||
<inset key="titleEdgeInsets" minX="6" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
<state key="normal" title="12" image="voicemail.png">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
</button>
|
||||
</subviews>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="Mhg-P6-RfU" userLabel="registrationState" customClass="UIIconButton">
|
||||
<rect key="frame" x="40" y="0.0" width="200" height="40"/>
|
||||
<rect key="frame" x="46" y="0.0" width="194" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<inset key="titleEdgeInsets" minX="6" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
<state key="normal" title="Registered" image="led_disconnected.png">
|
||||
|
|
@ -84,7 +87,7 @@
|
|||
<color key="backgroundColor" red="1" green="0.36862745099999999" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="39" y="178"/>
|
||||
<point key="canvasLocation" x="148" y="122"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#import "LinphoneManager.h"
|
||||
#import "TPMultiLayoutViewController.h"
|
||||
#import "SideMenuTableViewController.h"
|
||||
|
||||
@interface UICompositeViewDescription: NSObject{
|
||||
}
|
||||
|
|
@ -63,11 +64,14 @@
|
|||
@property (nonatomic, strong) IBOutlet UIView* stateBarView;
|
||||
@property (nonatomic, strong) IBOutlet UIView* contentView;
|
||||
@property (nonatomic, strong) IBOutlet UIView* tabBarView;
|
||||
@property(weak, nonatomic) IBOutlet UIView *sideMenuView;
|
||||
@property(strong, nonatomic) IBOutlet SideMenuTableViewController *sideMenuTableViewController;
|
||||
|
||||
- (void)changeView:(UICompositeViewDescription *)description;
|
||||
- (void)setFullScreen:(BOOL) enabled;
|
||||
- (void)setStateBarHidden:(BOOL) hidden;
|
||||
- (void)setToolBarHidden:(BOOL) hidden;
|
||||
- (void)setFullScreen:(BOOL)enabled;
|
||||
- (void)hideStateBar:(BOOL)hidden;
|
||||
- (void)hideToolBar:(BOOL)hidden;
|
||||
- (void)hideSideMenu:(BOOL)hidden;
|
||||
- (BOOL)currentViewSupportsLandscape;
|
||||
- (UIViewController *)getCachedController:(NSString*)name;
|
||||
- (UIViewController *)getCurrentViewController;
|
||||
|
|
|
|||
|
|
@ -566,14 +566,43 @@
|
|||
[self update:nil tabBar:nil stateBar:nil fullscreen:[NSNumber numberWithBool:enabled]];
|
||||
}
|
||||
|
||||
- (void)setToolBarHidden:(BOOL)hidden {
|
||||
- (void)hideToolBar:(BOOL)hidden {
|
||||
[self update:nil tabBar:[NSNumber numberWithBool:!hidden] stateBar:nil fullscreen:nil];
|
||||
}
|
||||
|
||||
- (void)setStateBarHidden:(BOOL)hidden {
|
||||
- (void)hideStateBar:(BOOL)hidden {
|
||||
[self update:nil tabBar:nil stateBar:[NSNumber numberWithBool:!hidden] fullscreen:nil];
|
||||
}
|
||||
|
||||
- (void)hideSideMenu:(BOOL)hidden {
|
||||
[self hideSideMenu:hidden
|
||||
animated:[[LinphoneManager instance] lpConfigBoolForKey:@"animations_preference" withDefault:YES]];
|
||||
}
|
||||
|
||||
- (void)hideSideMenu:(BOOL)hidden animated:(BOOL)animated {
|
||||
LOGI(@"%s side menu", hidden ? "Closing" : "Opening");
|
||||
|
||||
// resign keyboard, if any
|
||||
[LinphoneUtils findAndResignFirstResponder:self.view];
|
||||
|
||||
CGRect d = _sideMenuView.frame;
|
||||
d.origin.x = hidden ? -d.size.width : 0;
|
||||
|
||||
if (animated) {
|
||||
_sideMenuView.hidden = NO;
|
||||
[UIView animateWithDuration:0.3
|
||||
animations:^{
|
||||
_sideMenuView.frame = d;
|
||||
}
|
||||
completion:^(BOOL finished) {
|
||||
_sideMenuView.hidden = hidden;
|
||||
}];
|
||||
} else {
|
||||
_sideMenuView.frame = d;
|
||||
_sideMenuView.hidden = hidden;
|
||||
}
|
||||
}
|
||||
|
||||
- (UIViewController *)getCurrentViewController {
|
||||
return self.contentViewController;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#import <UIKit/UIKit.h>
|
||||
#import "TPMultiLayoutViewController.h"
|
||||
#import "DTActionSheet.h"
|
||||
#import "SideMenuTableViewController.h"
|
||||
|
||||
@interface UIStateBar : TPMultiLayoutViewController<UIActionSheetDelegate> {
|
||||
DTActionSheet *securitySheet;
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
@property(weak, nonatomic) IBOutlet UIView *incallView;
|
||||
@property(weak, nonatomic) IBOutlet UIView *outcallView;
|
||||
|
||||
- (IBAction)doSecurityClick:(id)sender;
|
||||
- (IBAction)onSecurityClick:(id)sender;
|
||||
- (IBAction)onSideMenuClick:(id)sender;
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@
|
|||
|
||||
#pragma mark - Action Functions
|
||||
|
||||
- (IBAction)doSecurityClick:(id)sender {
|
||||
- (IBAction)onSecurityClick:(id)sender {
|
||||
if (linphone_core_get_calls_nb([LinphoneManager getLc])) {
|
||||
LinphoneCall *call = linphone_core_get_current_call([LinphoneManager getLc]);
|
||||
if (call != NULL) {
|
||||
|
|
@ -314,6 +314,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (IBAction)onSideMenuClick:(id)sender {
|
||||
UICompositeViewController *cvc = PhoneMainView.instance.mainViewController;
|
||||
[cvc hideSideMenu:!cvc.sideMenuView.hidden];
|
||||
}
|
||||
|
||||
- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex {
|
||||
securitySheet = nil;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -488,11 +488,11 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
}
|
||||
|
||||
- (void)showTabBar:(BOOL)show {
|
||||
[mainViewController setToolBarHidden:!show];
|
||||
[mainViewController hideToolBar:!show];
|
||||
}
|
||||
|
||||
- (void)showStateBar:(BOOL)show {
|
||||
[mainViewController setStateBarHidden:!show];
|
||||
[mainViewController hideStateBar:!show];
|
||||
}
|
||||
|
||||
- (void)updateStatusBar:(UICompositeViewDescription *)to_view {
|
||||
|
|
|
|||
26
Classes/SideMenuTableViewController.h
Normal file
26
Classes/SideMenuTableViewController.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//
|
||||
// SideMenuTableViewController.h
|
||||
// linphone
|
||||
//
|
||||
// Created by Gautier Pelloux-Prayer on 28/07/15.
|
||||
//
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
// the block to execute when an entry tapped
|
||||
typedef void (^SideMenuEntryBlock)(void);
|
||||
|
||||
@interface SideMenuEntry : NSObject {
|
||||
@public
|
||||
NSString *title;
|
||||
SideMenuEntryBlock onTapBlock;
|
||||
};
|
||||
@end
|
||||
|
||||
@interface SideMenuTableViewController : UITableViewController
|
||||
|
||||
@property(nonatomic, retain) NSMutableArray *sideMenuEntries;
|
||||
|
||||
+ (void)addSideMenuEntry:(SideMenuEntry *)entry;
|
||||
@end
|
||||
80
Classes/SideMenuTableViewController.m
Normal file
80
Classes/SideMenuTableViewController.m
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
//
|
||||
// SideMenuTableViewController.m
|
||||
// linphone
|
||||
//
|
||||
// Created by Gautier Pelloux-Prayer on 28/07/15.
|
||||
//
|
||||
//
|
||||
|
||||
#import "SideMenuTableViewController.h"
|
||||
#import "Utils.h"
|
||||
|
||||
#import "PhoneMainView.h"
|
||||
#import "UIStateBar.h"
|
||||
|
||||
@implementation SideMenuEntry
|
||||
|
||||
- (id)initWithTitle:(NSString *)atitle tapBlock:(SideMenuEntryBlock)tapBlock {
|
||||
if ((self = [super init])) {
|
||||
self->title = atitle;
|
||||
self->onTapBlock = tapBlock;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation SideMenuTableViewController
|
||||
|
||||
+ (void)addSideMenuEntry:(SideMenuEntry *)entry {
|
||||
SideMenuTableViewController *this = PhoneMainView.instance.mainViewController.sideMenuTableViewController;
|
||||
[this.sideMenuEntries addObject:entry];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
_sideMenuEntries = [[NSMutableArray alloc] init];
|
||||
|
||||
[_sideMenuEntries
|
||||
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Settings", nil)
|
||||
tapBlock:^() {
|
||||
|
||||
[PhoneMainView.instance
|
||||
changeCurrentView:SettingsViewController.compositeViewDescription];
|
||||
}]];
|
||||
[_sideMenuEntries
|
||||
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"About", nil)
|
||||
tapBlock:^() {
|
||||
[PhoneMainView.instance
|
||||
changeCurrentView:AboutViewController.compositeViewDescription];
|
||||
}]];
|
||||
}
|
||||
|
||||
#pragma mark - Table View Controller
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
|
||||
return 1;
|
||||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
||||
return [_sideMenuEntries count];
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
SideMenuEntry *entry = [_sideMenuEntries objectAtIndex:indexPath.row];
|
||||
UITableViewCell *cell = [[UITableViewCell alloc] init];
|
||||
cell.textLabel.text = entry->title;
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:NO];
|
||||
|
||||
SideMenuEntry *entry = [_sideMenuEntries objectAtIndex:indexPath.row];
|
||||
LOGI(@"Entry %@ has been tapped", entry->title);
|
||||
if (entry->onTapBlock == nil) {
|
||||
LOGF(@"Entry %@ has no onTapBlock!", entry->title);
|
||||
}
|
||||
[PhoneMainView.instance.mainViewController hideSideMenu:YES];
|
||||
entry->onTapBlock();
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
@ -107,6 +107,7 @@
|
|||
63158FAD1B468E0E00969917 /* ImageOptim.sh in Resources */ = {isa = PBXBuildFile; fileRef = 63158FAC1B468E0E00969917 /* ImageOptim.sh */; };
|
||||
632DA24D1B43EE9400EB356A /* Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = D35860D515B549B500513429 /* Utils.m */; };
|
||||
632DA24E1B43EEEF00EB356A /* Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = D35860D515B549B500513429 /* Utils.m */; };
|
||||
633756391B67BAF400E21BAD /* SideMenuTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 633756381B67BAF400E21BAD /* SideMenuTableViewController.m */; };
|
||||
634610061B61330300548952 /* UILabel+Boldify.m in Sources */ = {isa = PBXBuildFile; fileRef = 634610051B61330300548952 /* UILabel+Boldify.m */; };
|
||||
6346100F1B61409800548952 /* OutgoingCallViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6346100E1B61409800548952 /* OutgoingCallViewController.m */; };
|
||||
634610121B6140A500548952 /* OutgoingCallViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 634610101B6140A500548952 /* OutgoingCallViewController.xib */; };
|
||||
|
|
@ -656,6 +657,8 @@
|
|||
630CF5551AF7CE1500539F7A /* UITextField+DoneButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UITextField+DoneButton.h"; sourceTree = "<group>"; };
|
||||
630CF5561AF7CE1500539F7A /* UITextField+DoneButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UITextField+DoneButton.m"; sourceTree = "<group>"; };
|
||||
63158FAC1B468E0E00969917 /* ImageOptim.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = ImageOptim.sh; path = Tools/ImageOptim.sh; sourceTree = "<group>"; };
|
||||
633756371B67BAF400E21BAD /* SideMenuTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SideMenuTableViewController.h; sourceTree = "<group>"; };
|
||||
633756381B67BAF400E21BAD /* SideMenuTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SideMenuTableViewController.m; sourceTree = "<group>"; };
|
||||
633E388219FFB0F400936D1C /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
|
||||
634610041B61330300548952 /* UILabel+Boldify.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UILabel+Boldify.h"; sourceTree = "<group>"; };
|
||||
634610051B61330300548952 /* UILabel+Boldify.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UILabel+Boldify.m"; sourceTree = "<group>"; };
|
||||
|
|
@ -1324,6 +1327,8 @@
|
|||
D38187E015FE348A00C3EDCA /* WizardViewController.xib */,
|
||||
D3D5126E160B3AD400946DF8 /* WizardViewController~ipad.xib */,
|
||||
D3D5126A160B3A8E00946DF8 /* WizardViews.xib */,
|
||||
633756371B67BAF400E21BAD /* SideMenuTableViewController.h */,
|
||||
633756381B67BAF400E21BAD /* SideMenuTableViewController.m */,
|
||||
);
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
|
|
@ -2446,6 +2451,7 @@
|
|||
22E0A822111C44E100B04932 /* AboutViewController.m in Sources */,
|
||||
634610061B61330300548952 /* UILabel+Boldify.m in Sources */,
|
||||
2248E90E12F7E4CF00220D9C /* UIDigitButton.m in Sources */,
|
||||
633756391B67BAF400E21BAD /* SideMenuTableViewController.m in Sources */,
|
||||
2214EB7A12F846B1002A5394 /* UICallButton.m in Sources */,
|
||||
2214EB8912F84EBB002A5394 /* UIHangUpButton.m in Sources */,
|
||||
630CF5571AF7CE1500539F7A /* UITextField+DoneButton.m in Sources */,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue