watch-os-2


WKInterfaceTable pull to refresh


Is it possible to create pull to refresh action in WKInterfaceTable in watch os 2?
There is one question but its related to watch os 1.
WatchKit pull to refresh
Short Answer:
No, it's not possible.
Long Answer:
All WKInterface Objects are just proxy objects that allows you to send queries to real UI Object. So basically they are not treditional UI Objects.
Connections between real UIs and WKInterface objects are managed by watchOS. What if some WKInterfaceController got deactivated, the connections in it will be disconnected also. In this state, you can't send queries anymore.
You may know that there are two bundles for watch Apps, one takes storyboard and icons, the other one is extension bundle. With sand-box concept, your code(in extension) can't access UI(storyboard bundle sided) directly. The only way to interact is using Interface Builder outlets and sent action.
It(Remote-UI concepts) makes sense for watchOS1 since all the code runs on iPhone. However with some reason, WatchOS2 App also use same strategy. With this restriction, You can't write code that react user interaction to real UI Objects directly likes iOS apps. As I told earlier, You can use pre-defined sent action only.
Since Xcode Interface Builder doesn't provide sent action likes did scroll, You can't write code that react pull down.

Related Links

Apple watch's gyroscope.available always return false
Does WCSessionDelegate get an initial sessionReachabilityDidChange after activating WCSession?
Are `setHidden` messages to `WKInterfaceObject` guaranteed to be delivered in order?
Apple Watch App Extension won't run on the simulator anymore
WatchOS2 Context Menu not working with BecomeCurrentPage
Apple Watch Complication not updating in background
Apple watch complication not refreshing in the background when using HealthKit queries
WKInterfaceTable pull to refresh
HKAnchoredObjectQuery results handler doesn't fire after initial results
WKInterfaceMap is not shown on WatchOS 2 project
can a user interact with WKInterfacePicker with touch gestures?
Will install Watch App called with bad bundle identifier '(null)'
Wakeup Watch app OS2 from the parent IOS app?
HomeKit show no homes in WatchOS 2
watch OS2 Complications deep link to a page in the app
Why is WKInterfacePicker considered an undeclared type?

Categories

HOME
service-worker
google-app-engine
phantom-dsl
spark-streaming
linkedin
twig
rsa
r-googlesheets
performancepoint
augeas
pega
favicon
plink
libusb
altera
forgot-password
html5-appcache
solrcloud
selinux
user-experience
kendo-mobile
php-mysqlidb
game-theory
fable-f#
fractions
carrierwave
corenlp-server
complex-numbers
rselenium
github3.py
carriage-return
installscript
docfx
node-mssql
bc
verifiable-c
demo
p4merge
spring-mvc-test
avcapturedevice
wcftestclient
podscms
boxing
rmongo
usart
flex-monkey
burrows-wheeler-transform
beamer
redis-cluster
jparsec
blitline
design-principles
rasterize
jnlua
text-search
baasbox
git-ftp
osc
code-documentation
memset
git-repo
visual-studio-express
eclipse-kepler
jammer
cocoalibspotify-2.0
script#
jquery-1.9
resource-management
pstack
urlrewriter
fsevents
catransform3d
update-statement
automationelement
webdev.webserver
cdonts
codebase
echo3
purepdf
ifilter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App