---
title: "ios 方法申明"
author: "macleo"
date: "2013-04-20T00:40:24Z"
tags: []
categories: ["移动开发"]
slug: "ios"
draft: false
lastmod: "2013-04-21T00:28:23Z"
id: 1850536
url: "https://macleo.iteye.com/blog/1850536"
---

![](http://dl.iteye.com/upload/picture/pic/125004/6a7ad072-13c7-3faa-971c-36cd02d7c345.jpg)


<http://blog.sina.com.cn/s/blog_a7c44c880101bmw8.html>


> 10.中缀符
> objective-c有一种名为中缀符的语法技术。方法的名称及其参数都是合在一起的。例如：[trxtthing setstringvalue:@"hello there" color:kbluecolor]; 中 setStringValue: 和color:实际上是参数的名称（实际上是方法名称的一部分）。使代码可读性更强，更容易理解参数的用途。