Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Classes/MAKDropDownMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ @implementation MAKDropDownMenu {
UIColor *_privateBackgroundColor;
}
@synthesize isOpen = _isOpen;
@synthesize titles = _titles;

#pragma mark - Setters

Expand Down Expand Up @@ -47,6 +48,7 @@ - (void)initialize {
}

- (void)setTitles:(NSArray *)titles {
_titles = titles;
for (UIView *button in _buttons) {
[button removeFromSuperview];
}
Expand Down
26 changes: 26 additions & 0 deletions Example/DropDownMenu/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.diniska.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
140 changes: 140 additions & 0 deletions Example/MAKDropDownMenuExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
07AEFCDA1977D59400633162 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07AEFCBC1977D59400633162 /* UIKit.framework */; };
07AEFCE21977D59400633162 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 07AEFCE01977D59400633162 /* InfoPlist.strings */; };
07AEFCE41977D59400633162 /* MAKDropDownMenuExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 07AEFCE31977D59400633162 /* MAKDropDownMenuExampleTests.m */; };
89CB98B41B12E82E00C87160 /* MAKDropDownMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 071C6BFD1998E8D5005EAD66 /* MAKDropDownMenu.h */; settings = {ATTRIBUTES = (Public, ); }; };
89CB98B51B12E82E00C87160 /* MAKDropDownMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 071C6BFE1998E8D5005EAD66 /* MAKDropDownMenu.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -56,6 +58,8 @@
07AEFCDF1977D59400633162 /* MAKDropDownMenuExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MAKDropDownMenuExampleTests-Info.plist"; sourceTree = "<group>"; };
07AEFCE11977D59400633162 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
07AEFCE31977D59400633162 /* MAKDropDownMenuExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MAKDropDownMenuExampleTests.m; sourceTree = "<group>"; };
89CB989B1B12E7F600C87160 /* MAKDropDownMenu.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MAKDropDownMenu.framework; sourceTree = BUILT_PRODUCTS_DIR; };
89CB989E1B12E7F600C87160 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -79,6 +83,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
89CB98971B12E7F600C87160 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -87,6 +98,7 @@
children = (
07AEFCBE1977D59400633162 /* MAKDropDownMenuExample */,
07AEFCDD1977D59400633162 /* MAKDropDownMenuExampleTests */,
89CB989C1B12E7F600C87160 /* DropDownMenu */,
07AEFCB71977D59400633162 /* Frameworks */,
07AEFCB61977D59400633162 /* Products */,
);
Expand All @@ -97,6 +109,7 @@
children = (
07AEFCB51977D59400633162 /* MAKDropDownMenuExample.app */,
07AEFCD61977D59400633162 /* MAKDropDownMenuExampleTests.xctest */,
89CB989B1B12E7F600C87160 /* MAKDropDownMenu.framework */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -157,8 +170,35 @@
name = "Supporting Files";
sourceTree = "<group>";
};
89CB989C1B12E7F600C87160 /* DropDownMenu */ = {
isa = PBXGroup;
children = (
89CB989D1B12E7F600C87160 /* Supporting Files */,
);
path = DropDownMenu;
sourceTree = "<group>";
};
89CB989D1B12E7F600C87160 /* Supporting Files */ = {
isa = PBXGroup;
children = (
89CB989E1B12E7F600C87160 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
89CB98981B12E7F600C87160 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
89CB98B41B12E82E00C87160 /* MAKDropDownMenu.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
07AEFCB41977D59400633162 /* MAKDropDownMenuExample */ = {
isa = PBXNativeTarget;
Expand Down Expand Up @@ -195,6 +235,24 @@
productReference = 07AEFCD61977D59400633162 /* MAKDropDownMenuExampleTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
89CB989A1B12E7F600C87160 /* MAKDropDownMenu Framework */ = {
isa = PBXNativeTarget;
buildConfigurationList = 89CB98AE1B12E7F600C87160 /* Build configuration list for PBXNativeTarget "MAKDropDownMenu Framework" */;
buildPhases = (
89CB98961B12E7F600C87160 /* Sources */,
89CB98971B12E7F600C87160 /* Frameworks */,
89CB98981B12E7F600C87160 /* Headers */,
89CB98991B12E7F600C87160 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "MAKDropDownMenu Framework";
productName = DropDownMenu;
productReference = 89CB989B1B12E7F600C87160 /* MAKDropDownMenu.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -208,6 +266,9 @@
07AEFCD51977D59400633162 = {
TestTargetID = 07AEFCB41977D59400633162;
};
89CB989A1B12E7F600C87160 = {
CreatedOnToolsVersion = 6.3.2;
};
};
};
buildConfigurationList = 07AEFCB01977D59400633162 /* Build configuration list for PBXProject "MAKDropDownMenuExample" */;
Expand All @@ -225,6 +286,7 @@
targets = (
07AEFCB41977D59400633162 /* MAKDropDownMenuExample */,
07AEFCD51977D59400633162 /* MAKDropDownMenuExampleTests */,
89CB989A1B12E7F600C87160 /* MAKDropDownMenu Framework */,
);
};
/* End PBXProject section */
Expand All @@ -248,6 +310,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
89CB98991B12E7F600C87160 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -270,6 +339,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
89CB98961B12E7F600C87160 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
89CB98B51B12E82E00C87160 /* MAKDropDownMenu.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand Down Expand Up @@ -446,6 +523,61 @@
};
name = Release;
};
89CB98AF1B12E7F600C87160 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = DropDownMenu/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_NAME = MAKDropDownMenu;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
89CB98B01B12E7F600C87160 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = DropDownMenu/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = MAKDropDownMenu;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -476,6 +608,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
89CB98AE1B12E7F600C87160 /* Build configuration list for PBXNativeTarget "MAKDropDownMenu Framework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
89CB98AF1B12E7F600C87160 /* Debug */,
89CB98B01B12E7F600C87160 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 07AEFCAD1977D59400633162 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB989A1B12E7F600C87160"
BuildableName = "MAKDropDownMenu.framework"
BlueprintName = "MAKDropDownMenu Framework"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB98A41B12E7F600C87160"
BuildableName = "DropDownMenuTests.xctest"
BlueprintName = "DropDownMenuTests"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB98A41B12E7F600C87160"
BuildableName = "DropDownMenuTests.xctest"
BlueprintName = "DropDownMenuTests"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB989A1B12E7F600C87160"
BuildableName = "MAKDropDownMenu.framework"
BlueprintName = "MAKDropDownMenu Framework"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB989A1B12E7F600C87160"
BuildableName = "MAKDropDownMenu.framework"
BlueprintName = "MAKDropDownMenu Framework"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "89CB989A1B12E7F600C87160"
BuildableName = "MAKDropDownMenu.framework"
BlueprintName = "MAKDropDownMenu Framework"
ReferencedContainer = "container:MAKDropDownMenuExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.diniska.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.diniska.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down