IOS8 - Single Widget for Multiple Purposes

Apple introduced the Widgets concept at WWDC 2014. Widgets are used to quickly access an application with much-needed information. I tried to add Widgets to my application. It was easy when the application had only one goal.

But if we have several targets, it seems we need to add a separate widget for each goal. Is it possible to add one widget and make it share with all Goals?

Thanks in advance.

+4
source share
2 answers

, , . DD-WRT, 3 . 1 iPhone, 1 iPad, 1 - "lite". ( iPhone iPad , 3 App Store).

today widget 3 , 1 , , .

, ?

today widget . , Editor > Add Target Today Extension Application Extension.

, .

Add target

, File inspector

, . - All targets

, . . Info.plist . bundle identifier bundle identifier . Info.plist, , , . .

- : Info.plist files

, .plist.

Build Settings plist , Info.plist file plist . edit plist name

, . TodayViewController.m MainInterface,storyboard , File inspector . : File targets

.

, , ( , , ). General Main Interface MainInterface. , , , . , , .

, . a Clean, .

+11

. / (Testflight).

, , StoryBoard, . , , , info.plist. .

, reset .

, .

0

Source: https://habr.com/ru/post/1546982/


All Articles