Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:51:24+00:00 2026-06-12T00:51:24+00:00

I am attemping to write a weather notification center widget which works the way

  • 0

I am attemping to write a weather notification center widget which works the way like system’s Yahoo weather widget: tap the widget, open my own weather app, select a city and the widget show the weather of the city i chose. But I don’t know how the widget can obtain the weather app’s city setting. I use the *notification_center_widget*.nic to build my widget, which make it looks like a independent app running in bulletin board(Am i correct?).Now the weather app and widget both use archive to save city setting.

How does system’s weather widget do that?

Can the weather app directly write file in weather widget’s bundle? Or the weather widget directly read file in weather app?

I also tried to use openURL to pass selected cityname to the widget: add URL Schemes to Info.plist in Resources folder, and follow the UIApplicationDelegate protocol, implement the handleOpenURL function. but it dosen’t work.

I tried to use presentModalViewController: to pop a citySelectViewController instead of set city in another app, but the viewcontroller only shows in the small area which the widget presents.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:51:26+00:00Added an answer on June 12, 2026 at 12:51 am

    I found a way seems a little like cheating to set widget’s city in another app. I make the widget to archive city setting data in the root folder of the bundle(can be seen by iFile). Since the widget bundle will be installed into a specific folder. The weather app can use bundleWithPath to easily get the widget’s bundle and archive city setting in the bundle when the user done selecting city. Then, when the widget runs again, it will read city setting data, which is already changed by the weather app, and show the weather of the city we chose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm attempting to write my own wxObject, and I would like for the
I'm attemping to write my own bootloader and i'm having issues with writing to
I am attempting to write a C++ wrapper of OpenVG, which is very Open-GL
I am attempting to write an Android app which will allow me to read
i'm attempting to write the result of the $x = [System.Net.Dns]::GetHostAddresses($name) statement into my
I am attempting to write a function which will operate on a std::map of
I'm attempting to write my own WYSWG text editor in Javascript, but I'm struggling
I'm attempting to write a text editor. I'm unable to open a file. Why?
I'm attempting to write a SQL search which will allow return any records which
I'm attempting to write my own Log4Net Glimpse plugin (so I can interface with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.