سؤال

I've had some experience developing iOS apps and I'm currently working on an idea I had for a Cydia tweak. The tweak would work with action menus, adding a new button to the menu and presenting an interface when the button is tapped on.

I'm trying to do this with the action menu template on iOSOpenDev. I currently have iOSOpenDev installed and have created a new project using the action menu template. However, I don't know how to proceed after this.

I'm looking for some sample code or reference materials on how to create tweaks using iOSOpenDev, but so far I haven't even found one sample project. Is there good up-to-date documentation or tutorials on how to use iOSOpenDev to create Cydia tweaks?

هل كانت مفيدة؟

المحلول

Sample code:

And here's what you have to do after having written all the code:

  1. I don't use iOSOpenDev, but if I recall correctly, it packages your tweak into a Debian package file. If this is the case, you simply copy that file to your device, install it (perhaps using dpkg -i <filename.deb>, and restart SpringBoard.

  2. If not, then you just grab the resulting .dylib and .plist files, and copy them over to the device to the /Library/MobileSubstrate/DynamicLibraries directory, and once again, you respring.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top