---
title: "vectorWithString:"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/civector/vectorwithstring:"
---

# vectorWithString:

Create a Core Image vector object with values provided in a string representation.

## Declaration

```occ
+ (instancetype) vectorWithString:(NSString *) representation;
```

## Parameters

- `representation`: A string that is in one of the formats returned by the stringRepresentation method.

## Return Value

Return Value  An autoreleased CIVector object.

## See Also

### Creating a Vector

- [vectorWithValues:count:](coreimage/civector/vectorwithvalues:count:.md)
- [vectorWithX:](coreimage/civector/vectorwithx:.md)
- [vectorWithX:Y:](coreimage/civector/vectorwithx:y:.md)
- [vectorWithX:Y:Z:](coreimage/civector/vectorwithx:y:z:.md)
- [vectorWithX:Y:Z:W:](coreimage/civector/vectorwithx:y:z:w:.md)
- [init(cgAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-59e4k.md)
- [init(cgPoint:)](coreimage/civector/init(cgpoint:)-3mobm.md)
- [init(cgRect:)](coreimage/civector/init(cgrect:)-3undj.md)
