Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Replace int with NSInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
charlymr committed Nov 29, 2017
1 parent 6df9305 commit c9f7bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions IRLCamera.storyboard
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions Source/Private/CIImage+Utilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ + (CIImage *)imageGradientImage:(CGFloat)threshold {
CGRect copy = r;
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);

int points = 200;
NSInteger points = 200;
[[UIColor whiteColor] setFill];
[[UIBezierPath bezierPathWithRect:r] fill];
r.size.width = r.size.width * threshold;
for (int i=0;i<points;i++){
for (NSInteger i=0;i<points;i++){
//CGFloat sigm = (points - i)/(CGFloat)points;
CGFloat sigm = 1.0/(1.0 + exp(-(10.0 * (points/2-i)/((CGFloat)points))));

Expand Down

0 comments on commit c9f7bbc

Please sign in to comment.