- 浏览: 904248 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (466)
- iPhone, iOS , Objective-c (155)
- 数据库 (20)
- 设计模式 (5)
- 第三方包管理,cocoapod (2)
- 版本管理, SVN, Subversion, Git (1)
- Google, Android, Java (14)
- Wordpress (1)
- 职业素养 (3)
- 版本管理,git (3)
- 前端小技巧 (2)
- flash (1)
- javascript (5)
- Ruby (0)
- 编程语言 (1)
- 网络常识 (1)
- 找到生活好感觉 (5)
- 产品经理 (1)
- markdown (1)
- 云服务器 (1)
- iPhone (116)
- iOS (116)
- Objective-c (116)
- 学习技巧 (2)
- Google (5)
- Android (6)
- Java (21)
- python (1)
- sqlite (3)
- node.js (2)
- mongodb (2)
- 学习技巧,阅读 (2)
- 软件测试 (3)
- 架构设计 (2)
- 设计 (1)
- Spring framework (3)
- junit (1)
- Linux (2)
- 软件 (1)
- Struts2 (1)
- 版本管理 (3)
- SVN (3)
- Subversion (3)
- Git (3)
- mysql (5)
- quartz (1)
- 无关技术 (1)
- 前端 (1)
- Redis (1)
- 产品管理 (0)
- 计算机常识 (1)
- 计算机科学 (0)
- swift (1)
- 服务器 (2)
- 搜索 (1)
- Scala (1)
- J2EE (1)
- maven (1)
- 前端css (1)
- 英语 (1)
- 消息队列 (1)
- kafka (0)
- apache kafka (4)
- netbeans (1)
- IDE (2)
- 歌词 (1)
- 过滤器实现 (1)
- linux vim vi (1)
- jmeter (1)
- springcloud (1)
最新评论
-
hujingnemo:
不知道为什么打不开
CHM如何改编字体大小 -
weiboyuan:
求答案 weiboyuanios@163.com
iOS软件工程师面试题(高级) -
xueji5368:
这个现在已经广泛使用了嘛!
RoboGuice入门 -
Yao__Shun__Yu:
...
CHM如何改编字体大小 -
353144886:
非常之详细 美女求认识
sqlite数据类型 datetime处理
解决 sending 'const NSString *' to parameter of type 'NSString *' discards qualifi
比如,写了 const NSString* firstString = @"xxx";
NSString* secondString = @"yyy";
[secondString isEqualToString:firstString];
会出现 sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers 警告。
解决办法:
把 const NSString* firstString = @"xxx";
改成 NSString* const firstString = @"xxx";
解释:前者相当于指针本身不可修改,后者表示指针指向的内容不可修改,两者的作用都是使firstString只可读不可写。
NSString* secondString = @"yyy";
[secondString isEqualToString:firstString];
会出现 sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers 警告。
解决办法:
把 const NSString* firstString = @"xxx";
改成 NSString* const firstString = @"xxx";
解释:前者相当于指针本身不可修改,后者表示指针指向的内容不可修改,两者的作用都是使firstString只可读不可写。
发表评论
-
UIImage变为NSData并进行压缩
2014-05-19 20:23 1928//sdk中提供了方法可以直接调用 UIImage *im ... -
update cocapods
2014-05-17 22:27 800早上更新cocoapod依赖库,发现更新到32.1版本,早先的 ... -
iOS发送短信息代码实例
2014-05-16 18:15 2686#import <MessageUI/Message ... -
DISPATCH TIMER
2014-05-14 16:12 729/* __block void (^callback) ... -
UITextField左边显示图片
2014-05-13 18:08 1170The overlay view displayed on t ... -
iOS调用系统打电话,发短信功能
2014-05-11 15:48 2084先介绍一种最简单的方法: 调用打电话功能 [[UIAppl ... -
iOS面试题
2014-05-09 16:10 10771.写一下UIButton与UITableView的层级结构 ... -
socket二进制报文
2014-05-09 15:18 1300里面有帧头 字符串UTF-8 中间用0隔开 又一个字符串 ... -
将网站添加到桌面的方法
2014-05-08 14:25 1661<link href="http://www. ... -
iPhone通讯录联系人操作大全
2014-05-07 10:29 14591.需要引入AddressBook.framework框架 2 ... -
sqlite获取最新插入的rowid
2014-05-07 09:59 1523除了 last_insert_rowid select max ... -
号码归属地查询,拨打电话
2014-05-06 15:07 845在程序内调用拨打电话的方法,[[UIApplication s ... -
iOS时间合并
2014-04-28 17:55 1093合并同一时间的课程,同一时间可能有多个课程,比如13:30-1 ... -
vCard通讯录格式说明
2014-04-28 16:47 2556原帖:http://freesoftman.iteye.com ... -
UISearchBar背景色全套解决方案
2014-04-25 09:36 7443os系统升级到7.1后,原来在7.0下显示正常的UISearc ... -
升级XCode5.1.1遇到的奇葩问题NSString,NSObjectRuntime.h报错,Foundation找不到
2014-04-24 11:19 896升级XCode5.1.1遇到的奇葩问题NSString,NSO ... -
将NSString转为NSArray
2014-04-22 16:52 6269// Your JSON data: NSString *c ... -
另外一种NSData转为NSString的方法
2014-04-22 15:40 1211If the data is not null-termina ... -
HTTP,Socket,WebSocket异同
2014-04-18 16:54 1832参考文章: http://abbshr.g ... -
push隐藏UINavigtaionBar和UITabbar
2014-04-17 15:20 1092[self.navigationController setN ...
相关推荐
- **Understanding the Output:** Explanation of how the output is generated and displayed to the user through the web browser. - **Variables and Data Types:** Introduction to ...
总的来说,当遇到“sending boot FAILED”的错误时,不要慌张,可以尝试通过甜椒助手这类辅助工具来解决问题。在刷机过程中,理解不同模式(如fastboot、recovery等)的用途以及如何在它们之间切换,是避免常见错误...
- **The objc_msgSend Function:** At the heart of the messaging system is the `objc_msgSend` function, which is responsible for sending messages to objects. This function takes a target object and a ...
**Asynchronous communications** involve sending data as individual characters with start and stop bits to synchronize transmission. It does not require a constant clock signal and is more flexible but...
* Added the possibility to modify the value of a variable during debugging (right click on a watch variable and select "Modify value") * During Dev-C++ First Time COnfiguration window, users can now ...
- **Using Workers**: Practical examples of sending and receiving messages between the main script and a Web Worker. - **Shared Workers**: An introduction to shared workers and their role in sharing ...
### Oracle 10g 提示 java.lang.Exception: Exception in sending Request :: null 解决方案 在使用Oracle 10g的过程中,部分用户可能会遇到一个特定的问题:在登录企业管理器(Enterprise Manager, EM)时,系统会...
如果有多个收件人,可以使用`To`, `Cc`, `Bcc`属性添加。 7. **处理图像嵌入**:在C#中,可以使用`System.IO`和`System.Net`命名空间来读取文件内容,转换成Base64字符串,或者使用`System.Net.Mail.LinkedResource...
the JavaMail API, if you want this type of information, you have to calculate it yourself. IMAP IMAP is a more advanced protocol for receiving messages. Defined in RFC 2060 , IMAP stands for ...
解决 Sending DHCP and RARP requests 卡住问题 Sending DHCP and RARP requests 卡住问题是一个常见的嵌入式系统开发中的问题。该问题的出现是由于在内核配置的时候选择自动配置IP,但是在内核又不能正确的自动...
Version: 2.12.0 (2019-07-17) Keil.STM32F7xx_DFP....Updated SPI_TRANSFER_INFO structure - tx_buf type changed from uint8_t * to const uint8_t *. Added check for valid pointer to SPI_PIN prior to use.
1. **SMTP error, RCPT TO: 550**:当收件人地址不存在或被列入黑名单时,邮件会被退回。需通过测试确认问题并解决。 2. **Forgery sender address!**:收件人服务器会验证发件人邮箱的MX记录和发信服务器是否一致...
MySQL数据库在处理查询时,有时会遇到"Sending data"状态导致查询速度变慢的问题。这种情况通常意味着MySQL正在收集并发送数据给客户端,特别是当查询涉及到大字段如`TEXT`或`VARCHAR(8000)`等时,性能瓶颈可能就在...
- **Drop Shipments**: Involves sending orders directly from suppliers to customers, bypassing the company's warehouse. - **Creating Drop Ship Orders**: Requires configuring supplier information and ...
安装Visual Studio 2012 Express之后,双击打开web.config文件时经常出现“There was a problem sending the command to the program”的错误,然后VS2012 Express打开了,但web.config文件没打开,需要再次双击web....
- **Sending Messages to nil(向nil发送消息)**:讨论了向nil发送消息时的行为以及如何处理这种情况。 - **The Receiver’s Instance Variables(接收者的实例变量)**:介绍了如何访问和修改接收者对象的实例...
Exceptions sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating...
This example is a very simple solution to sending and receiving data to and from a Parallax Basic Stamp. This example requires a Basic Stamp and the MSComm control. Also included is an example Basic ...
The interface should accommodate three kinds of programmers: those who wish to write sim-ple tablet programs, programmers who wish to write complex applications that take full ad¬vantage of tab-let ...
Signals in Django are a way to allow certain senders to notify a set of receivers when some action has taken place. They provide a way for decoupled applications to interact with each other. **Key ...