最近工作中,发现了一个bug,是和ListView Adapter有关的。产生了FC,描述信息大约是
"The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a b...
分类:
其他好文 时间:
2014-07-08 20:09:41
阅读次数:
199
1. 定义一个方法-(void) update{ }2. 对象注册,并关连消息[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(update) name:@"update" object:nil]3. 在...
分类:
其他好文 时间:
2014-07-07 17:45:21
阅读次数:
312
public Notification(int icon, CharSequence tickerText, long when)Deprecated. Use Notification.Builder inst...
分类:
移动开发 时间:
2014-07-06 18:00:10
阅读次数:
165
原文地址:http://developer.android.com/design/wear/principles.html
本篇设计原则提供了一些关于应该怎样规划和评估你的Android Wear应用程序设计的简单思路。
Focus on not stopping the user and all else will follow(专注于不打算用户并让一切后续跟随上来)
...
分类:
移动开发 时间:
2014-07-01 11:28:20
阅读次数:
309
在代码的deletegater中写:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScre...
分类:
其他好文 时间:
2014-06-30 10:48:04
阅读次数:
240
/* The notification name */const NSString *ResultOfAppendingTwoStringsNotification =@"ResultOfAppendingTwoStringsNotification"; /* Keys inside the dic...
分类:
移动开发 时间:
2014-06-27 20:38:41
阅读次数:
229
拦截短信有几个关键点:1.android接收短信时是以广播的方式2.程序只要在自己的Manifest.xml里加有"接收"SMS的权限3.要写个广播接收类publicclasssmsreceiveandmaskextendsBroadcastReceiver{privateStringTAG="sm...
分类:
移动开发 时间:
2014-06-27 13:43:03
阅读次数:
291
之后的几篇博客, 记录下不同界面间传值的常用办法。这篇文章记录广播的方式。iOS的设计模式中,通知模式也是其中重要的模式之一,Notification直译为通知,其实本人觉得叫做广播模式更为贴切。它的作用就是一个对象对多个对象的同步操作。用法很简单,一个对象发出一个广播,需要收听的听众就先注册一下,然后选定频道,完了就可以收听广播的内容了。但是要注意一点, 在收听之前, 一定要先注册。 不然发送的...
分类:
移动开发 时间:
2014-06-27 07:47:06
阅读次数:
213
在Android系统中,发一个状态栏通知还是很方便的。下面我们就来看一下,怎么发送状态栏通知,状态栏通知又有哪些参数可以设置?首先,发送一个状态栏通知必须用到两个类: NotificationManager 、Notification。NotificationManager: 是状态栏通知的管理类,...
分类:
移动开发 时间:
2014-06-26 23:40:49
阅读次数:
195
一、原理消息推送有两种,一种是客户端定时直接到服务器搜索消息,如果发现有新的消息,就获取消息下来;另一种是服务器向客户端发送消息,也就是当有信息消息时,服务器端就会向客户端发送消息。二、步骤(代码)注: Notification //是具体状态栏对象,设置Icon、文字、声音等。Notificati...
分类:
移动开发 时间:
2014-06-26 22:50:40
阅读次数:
430