How to make Notification Center Widgets (iOS 5) - objective-c

iOS 5 introduced Notification Center Widgets and I would like to experiment with those widgets and make custom ones (with a Jailbroken device). I couldn't quite figure out how to make such a widget. The Widgets (WeeApps) are bundles stored in /System/Library/WeeAppPlugins. It would be great if anyone has already writren a guide or could share how the principal class of a WeeApp has to look like. Ideal would be to have a WeeApp NIC template for theos :)
Note: This question is regarding so called WeeApps, system plugins for Notification Center introduced in iOS 5. Not to be confused with Today View Extensions introduced in iOS 8.

I don't want to shameless-plug in here, but I wrote a small tutorial to help you with this.
How to write Notification Center Widgets for iOS (iOS 6 and Below)
Hope it helps you!
UPDATE
Please note this is for iOS widgets running iOS 6 and below - In other words, this is for old jailbreak development. I may write an iOS 8 tutorial eventually, but this one is not it.

OK i think i have found a good way to understand it, a sample widget with full source code available on github: https://github.com/WillFour20/WeeAppTest But whats most helpful is this tutorial and the NIC template for theos mentioned in the tutorial, I already made several widgets using this method and my custom NIC templates. http://weeplugins.com/blog/?p=1

Related

What is meant by Flutter's widgets aren't really adaptive

I have been trying my hands for POC on an idea and trying to find languages which can support Mobile app development (Android/IOS) via single source code.
I zeroed on React-Native and Flutter.
What I found that for React-Native you still have to write code which is platform specific. Components need to be written differently for IOS and Android.
Then I looked in FLutter and I found that - "Flutter's widgets, however, while there are more of them, aren't really adaptive".
I am not able to understand it and what it means.
It would be really helpful if someone can help me with example or guide me to good reference.
In Flutter you have different sets of Widget Collection:
Material Widgets: Android-style
Cupertino Widgets: iOS-style
And lots of Widgets which aren't bound to one of those styles.
With this you are able to create a application looking like any style on any of the available platform. Therefore you can also have iOS-style Widgets on Android and vice versa.
If you want to have iOS Widgets on iOS and Android Widgets on Android, you'll have to create some conditional rendering, which decides wether to render iOS or Android components.
Sidenote: The Material-style Widgets look also really good on iOS. Also you can use a ton of other Widgets to create an UI in your own style.

How can we achieve coverflow view in android titanium?

I have seen that titanium support CoverFlowView in titanium but it works only on ios, Can anyone have idea to achieve CoverFlow in android with titanium
Thanks in advance
Looks like you are in luck! Someone already built a coverflow module for Android using the Android development environment.
https://github.com/moondroid/CoverFlow
You need to be willing to write the additional code for that to turn it into a module for Titanium.
http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Module_Development_Guide
It should be possible, but I must admit I've never tried to write one myself.
Basically you cannot get Coverflow on Android. Since it is a native iOs component which is not implemented in Android at all. Frameworks like Titanium always "link" your commands to internal system APIs. When there is no API there is no way to access it. Of course you could try to build it on your own but I think this would not work that well. And its a lot of work!
Additionally cover flow is not really useful (except for holding just a few items). Have a look at my question at ux.stackexchange.

How to know about app launched and details jailbreak iOS 7

I am making a tweak for iOS 7, in which I want to know about app launch event, and the details of app being launched (name and identifier). So far the only useful framework I have found is SpringBoardServices.framework. The header files which may be/are useful to track app launch event include:
SBAppLaunchUtilities.h
SBLaunchAppListener.h
If I am on right track, can anyone provide me information about their methods usage? There is no relevant information or guide present on iphonedevwiki.
Moreover, How can I get information about app launched? I have studied Andy ibanez's tutorial. It hooks SBApplicationIcon class, which I guess has been removed from iOS 7 frameworks because I can't find it in dumped frameworks. So what is alternate header? Is it SBSCardItem.h and SBSCardItemsController ?
Looking forward for help. Thanks.
You need to look into SpringBoard.app instead of SpringBoardServices.framework. SpringBoard app comes "alone" because like it's extension implies, it's an app, and not a framework that can be found in the entire Private Frameworks.
You can get a lot of info from the SBApplicationIcon class in SpringBoard, such as the app display name and things like that. Check the headers for more info.

Sencha Touch Fastbook

Today I have been using the sencha touch framework to build an mobile app. I was very impressed (like many others) with the fastbook app that they showed.
On the blog it says that sencha touch 2.2.0 uses a lot of techniques used in the fastbook app. However when I try their example they do not even come close to the responsiveness of fastbook. The transitions are not so smooth and if you tap their is the delay that most html5 apps have.
My question is can I somewhere find the sourcecode of fastbook? I would love to know how they did the "sidebar" navigation because that responds very "natively".
I am afraid that there is no way finding the sourcecode of Fastbook. Please read this link:
http://www.sencha.com/forum/showthread.php?255853-Fastbook-Source
It would have been wonderful had they released it. But, incase if you are very specific on implementing slide navigation (Facebook-like) in Sencha Touch. This link will be a great help:
http://innofied.com/simplest-slide-navigation-with-sencha-touch-2-2/
Many of the Fastbook techniques (including animationQueue) are in Touch 2.2 and more will be in Touch 2.3 - which is in beta right now. The smooth side bar animation uses multiple iframes, and that's a part of Fastbook that is not (and won't be) in Touch 2.x because the API is not compatible with Touch 2 conventions. We didn't release source because Jacky used an edge build to create the app that used an experimental MVVM. We didn't want people to use this code in their apps because it was undocumented and not production quality.
You can see a much longer description of how Jacky did Fastbook in his SenchaCon 2013 session, which we'll be posting soon.
Try this one:
Sencha Market Sidebar

XCode 4.2: How To Use Page-Based Application

I am trying to explore xcode 4.2, and now i am trying to build a simple book app using the page-based app template on xcode.
I actually have no idea how things go on page-based app. to practice i want to load 1 image (different image each page) in every page. it's just a simple picture look book just for me to learn and be familiar how will i able to work with page-based application.
I am a bit confused with it, i don't know where to start. how will i able to do that??
any links for reference? or books that tackles the page-based application??
There is a book by Wei-Meng Lee called 'Beginning iOS 5 Application Development" he has online source code free for book owners. It's located here: http://www.wrox.com/WileyCDA/WroxTitle/Beginning-iOS-5-Application-Development.productCd-1118144252,descCd-DOWNLOAD.html
In the FULL DOWNLOAD there is an app called UsingViews (UsingViews.zip). That app shows you how to move through views. I highly recommend purchasing his book. Very Helpful.
Apple Documentation is also very helpful as others have already pointed out.